#332294#332294

#332294 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.174 H 279.8°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#332294
RGBrgb(51, 34, 148)
HSLhsl(249, 63%, 36%)
HSVhsv(249, 77%, 58%)
CMYKcmyk(65.5%, 77%, 0%, 42%)
CIE-LABlab(23.62, 41.56, -59.47)
CIE-LCHlch(23.62, 72.55, 304.95°)
OKLaboklab(35.99% 0.0297 -0.1716)
OKLCHoklch(35.99% 0.174 279.8)
XYZxyz(7.2809, 3.9854, 28.3968)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#332294 #839422
analogous
#224A94 #332294 #6C2294
triadic
#332294 #943322 #229433
tetradic
#332294 #94224A #839422 #22946C
square
#332294 #94224A #839422 #22946C
split-complementary
#332294 #946C22 #4A9422
monochromatic
#110B30 #221762 #332294 #442DC6 #6B58D9

Accessibility & contrast

On white

11.68
#332294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#332294 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #332294
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##332294#FFFFFF#000000##FFFFFF
##3322941.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #332294;
/* rgb */ color: rgb(51, 34, 148);
/* oklch */ color: oklch(36.0% 0.174 279.8);
Tailwind
colors: {
  custom: {
    50: '#7860b5',
    500: '#332294',
    950: '#000000',
  },
}
SCSS
$custom: #332294;
$custom-light: #7860b5;
$custom-dark: #000000;
JSON
{
  "hex": "#332294",
  "rgb": {
    "r": 51,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 248.947,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35986,
    "c": 0.17421,
    "h": 279.8
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#332294
secondary
#ADBD55
accent
#E642CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #332294

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

Preview Lab → · Contrast checker → · Palette generator →

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