#332394#332394

#332394 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.173 H 279.7°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#332394
RGBrgb(51, 35, 148)
HSLhsl(248, 62%, 36%)
HSVhsv(248, 76%, 58%)
CMYKcmyk(65.5%, 76.4%, 0%, 42%)
CIE-LABlab(23.81, 41.02, -59.15)
CIE-LCHlch(23.81, 71.98, 304.74°)
OKLaboklab(36.12% 0.0291 -0.1707)
OKLCHoklch(36.12% 0.173 279.7)
XYZxyz(7.3099, 4.0434, 28.4065)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332394 #849423
analogous
#234B94 #332394 #6B2394
triadic
#332394 #943323 #239433
tetradic
#332394 #94234B #849423 #23946B
square
#332394 #94234B #849423 #23946B
split-complementary
#332394 #946B23 #4B9423
monochromatic
#110C31 #221763 #332394 #442FC5 #6B5AD8

Accessibility & contrast

On white

11.61
#332394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#332394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332394
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332394#FFFFFF#000000##FFFFFF
##3323941.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #332394;
/* rgb */ color: rgb(51, 35, 148);
/* oklch */ color: oklch(36.1% 0.173 279.7);
Tailwind
colors: {
  custom: {
    50: '#7860b5',
    500: '#332394',
    950: '#000000',
  },
}
SCSS
$custom: #332394;
$custom-light: #7860b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332394",
  "rgb": {
    "r": 51,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 248.496,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36121,
    "c": 0.1732,
    "h": 279.7
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#332394
secondary
#AEBC57
accent
#E543CE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332394

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

Preview Lab → · Contrast checker → · Palette generator →

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