#332679#332679

#332679 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.135 H 283.7°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#332679
RGBrgb(51, 38, 121)
HSLhsl(249, 52%, 31%)
HSVhsv(249, 69%, 47%)
CMYKcmyk(57.9%, 68.6%, 0%, 52.5%)
CIE-LABlab(21.84, 30.41, -45.47)
CIE-LCHlch(21.84, 54.70, 303.77°)
OKLaboklab(33.91% 0.0319 -0.1307)
OKLCHoklch(33.91% 0.135 283.7)
XYZxyz(5.5085, 3.4702, 18.4650)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332679 #6C7926
analogous
#264279 #332679 #5C2679
triadic
#332679 #793326 #267933
tetradic
#332679 #792642 #6C7926 #26795C
square
#332679 #792642 #6C7926 #26795C
split-complementary
#332679 #795C26 #427926
monochromatic
#0C091C #1F174A #332679 #4735A8 #6451C8

Accessibility & contrast

On white

12.40
#332679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#332679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332679
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332679#FFFFFF#000000##FFFFFF
##3326791.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#123B4C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332679;
/* rgb */ color: rgb(51, 38, 121);
/* oklch */ color: oklch(33.9% 0.135 283.7);
Tailwind
colors: {
  custom: {
    50: '#7361a0',
    500: '#332679',
    950: '#000000',
  },
}
SCSS
$custom: #332679;
$custom-light: #7361a0;
$custom-dark: #000000;
JSON
{
  "hex": "#332679",
  "rgb": {
    "r": 51,
    "g": 38,
    "b": 121
  },
  "hsl": {
    "h": 249.398,
    "s": 52.201,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33912,
    "c": 0.13454,
    "h": 283.7
  },
  "luminance": 0.03471
}

Semantic roles & 50–950 ramp

primary
#332679
secondary
#9DAB50
accent
#DC4CC5
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #332679

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#332679 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva