#333B9E#333B9E

#333B9E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.0% C 0.159 H 273.6°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#333B9E
RGBrgb(51, 59, 158)
HSLhsl(236, 51%, 41%)
HSVhsv(236, 68%, 62%)
CMYKcmyk(67.7%, 62.7%, 0%, 38%)
CIE-LABlab(30.16, 29.78, -54.87)
CIE-LCHlch(30.16, 62.43, 298.49°)
OKLaboklab(40.98% 0.0098 -0.1582)
OKLCHoklch(40.98% 0.159 273.6)
XYZxyz(9.0987, 6.2995, 33.0776)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333B9E #9E9633
analogous
#33709E #333B9E #60339E
triadic
#333B9E #9E333B #3B9E33
tetradic
#333B9E #9E3370 #9E9633 #339E60
square
#333B9E #9E3370 #9E9633 #339E60
split-complementary
#333B9E #9E6033 #709E33
monochromatic
#151841 #242A70 #333B9E #4A53C4 #787FD3

Accessibility & contrast

On white

9.29
#333B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#333B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333B9E
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333B9E#FFFFFF#000000##FFFFFF
##333B9E1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #333b9e;
/* rgb */ color: rgb(51, 59, 158);
/* oklch */ color: oklch(41.0% 0.159 273.6);
Tailwind
colors: {
  custom: {
    50: '#7871bb',
    500: '#333b9e',
    950: '#000000',
  },
}
SCSS
$custom: #333b9e;
$custom-light: #7871bb;
$custom-dark: #000000;
JSON
{
  "hex": "#333b9e",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 158
  },
  "hsl": {
    "h": 235.514,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40983,
    "c": 0.1585,
    "h": 273.6
  },
  "luminance": 0.063
}

Semantic roles & 50–950 ramp

primary
#333B9E
secondary
#BCB671
accent
#D04DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #333B9E

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

Preview Lab → · Contrast checker → · Palette generator →

#333B9E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva