#332C97#332C97

#332C97 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.167 H 277.6°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#332C97
RGBrgb(51, 44, 151)
HSLhsl(244, 55%, 38%)
HSVhsv(244, 71%, 59%)
CMYKcmyk(66.2%, 70.9%, 0%, 40.8%)
CIE-LABlab(25.98, 36.81, -57.44)
CIE-LCHlch(25.98, 68.22, 302.65°)
OKLaboklab(37.75% 0.0223 -0.1658)
OKLCHoklch(37.75% 0.167 277.6)
XYZxyz(7.8500, 4.7389, 29.7732)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332C97 #90972C
analogous
#2C5A97 #332C97 #682C97
triadic
#332C97 #97332C #2C9733
tetradic
#332C97 #972C5A #90972C #2C9768
square
#332C97 #972C5A #90972C #2C9768
split-complementary
#332C97 #97682C #5A972C
monochromatic
#131038 #231E68 #332C97 #443AC6 #716AD4

Accessibility & contrast

On white

10.78
#332C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#332C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332C97
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332C97#FFFFFF#000000##FFFFFF
##332C971.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003995
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #332c97;
/* rgb */ color: rgb(51, 44, 151);
/* oklch */ color: oklch(37.8% 0.167 277.6);
Tailwind
colors: {
  custom: {
    50: '#7866b7',
    500: '#332c97',
    950: '#000000',
  },
}
SCSS
$custom: #332c97;
$custom-light: #7866b7;
$custom-dark: #000000;
JSON
{
  "hex": "#332c97",
  "rgb": {
    "r": 51,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 243.925,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3775,
    "c": 0.16727,
    "h": 277.6
  },
  "luminance": 0.0474
}

Semantic roles & 50–950 ramp

primary
#332C97
secondary
#B5BA65
accent
#DE4AD4
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #332C97

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

Preview Lab → · Contrast checker → · Palette generator →

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