#332874#332874

#332874 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.125 H 284.1°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#332874
RGBrgb(51, 40, 116)
HSLhsl(249, 49%, 31%)
HSVhsv(249, 66%, 45%)
CMYKcmyk(56%, 65.5%, 0%, 54.5%)
CIE-LABlab(21.88, 27.45, -42.20)
CIE-LCHlch(21.88, 50.35, 303.05°)
OKLaboklab(33.81% 0.0304 -0.1211)
OKLCHoklch(33.81% 0.125 284.1)
XYZxyz(5.2755, 3.4820, 16.9137)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332874 #697428
analogous
#284374 #332874 #592874
triadic
#332874 #743328 #287433
tetradic
#332874 #742843 #697428 #287459
square
#332874 #742843 #697428 #287459
split-complementary
#332874 #745928 #437428
monochromatic
#0B0919 #1F1846 #332874 #4738A2 #6353C4

Accessibility & contrast

On white

12.38
#332874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#332874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332874
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332874#FFFFFF#000000##FFFFFF
##3328741.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#003272
Tritanopia (blue-blind)
#173A4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #332874;
/* rgb */ color: rgb(51, 40, 116);
/* oklch */ color: oklch(33.8% 0.125 284.1);
Tailwind
colors: {
  custom: {
    50: '#71629d',
    500: '#332874',
    950: '#000000',
  },
}
SCSS
$custom: #332874;
$custom-light: #71629d;
$custom-dark: #000000;
JSON
{
  "hex": "#332874",
  "rgb": {
    "r": 51,
    "g": 40,
    "b": 116
  },
  "hsl": {
    "h": 248.684,
    "s": 48.718,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33808,
    "c": 0.12486,
    "h": 284.1
  },
  "luminance": 0.03482
}

Semantic roles & 50–950 ramp

primary
#332874
secondary
#9AA652
accent
#D850C4
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #332874

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

Preview Lab → · Contrast checker → · Palette generator →

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