#332E97#332E97

#332E97 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.165 H 277.2°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#332E97
RGBrgb(51, 46, 151)
HSLhsl(243, 53%, 39%)
HSVhsv(243, 70%, 59%)
CMYKcmyk(66.2%, 69.5%, 0%, 40.8%)
CIE-LABlab(26.42, 35.59, -56.71)
CIE-LCHlch(26.42, 66.95, 302.11°)
OKLaboklab(38.07% 0.0208 -0.1636)
OKLCHoklch(38.07% 0.165 277.2)
XYZxyz(7.9263, 4.8915, 29.7986)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332E97 #92972E
analogous
#2E5D97 #332E97 #672E97
triadic
#332E97 #97332E #2E9733
tetradic
#332E97 #972E5D #92972E #2E9767
square
#332E97 #972E5D #92972E #2E9767
split-complementary
#332E97 #97672E #5D972E
monochromatic
#131139 #232068 #332E97 #443EC4 #726DD2

Accessibility & contrast

On white

10.61
#332E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#332E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332E97
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332E97#FFFFFF#000000##FFFFFF
##332E971.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#003A95
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #332e97;
/* rgb */ color: rgb(51, 46, 151);
/* oklch */ color: oklch(38.1% 0.165 277.2);
Tailwind
colors: {
  custom: {
    50: '#7868b7',
    500: '#332e97',
    950: '#000000',
  },
}
SCSS
$custom: #332e97;
$custom-light: #7868b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332e97",
  "rgb": {
    "r": 51,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 242.857,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38071,
    "c": 0.16495,
    "h": 277.2
  },
  "luminance": 0.04892
}

Semantic roles & 50–950 ramp

primary
#332E97
secondary
#B6BA67
accent
#DD4BD6
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332E97

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

Preview Lab → · Contrast checker → · Palette generator →

#332E97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva