#333A96#333A96

#333A96 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.1% C 0.149 H 274.2°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#333A96
RGBrgb(51, 58, 150)
HSLhsl(236, 49%, 39%)
HSVhsv(236, 66%, 59%)
CMYKcmyk(66%, 61.3%, 0%, 41.2%)
CIE-LABlab(29.24, 27.56, -51.49)
CIE-LCHlch(29.24, 58.40, 298.16°)
OKLaboklab(40.1% 0.0109 -0.1483)
OKLCHoklch(40.1% 0.149 274.2)
XYZxyz(8.3815, 5.9312, 29.5514)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333A96 #968F33
analogous
#336B96 #333A96 #5E3396
triadic
#333A96 #96333A #3A9633
tetradic
#333A96 #96336B #968F33 #33965E
square
#333A96 #96336B #968F33 #33965E
split-complementary
#333A96 #965E33 #6B9633
monochromatic
#14173B #232868 #333A96 #464FC0 #747AD0

Accessibility & contrast

On white

9.60
#333A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#333A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333A96
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333A96#FFFFFF#000000##FFFFFF
##333A961.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004194
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #333a96;
/* rgb */ color: rgb(51, 58, 150);
/* oklch */ color: oklch(40.1% 0.149 274.2);
Tailwind
colors: {
  custom: {
    50: '#7770b6',
    500: '#333a96',
    950: '#000000',
  },
}
SCSS
$custom: #333a96;
$custom-light: #7770b6;
$custom-dark: #000000;
JSON
{
  "hex": "#333a96",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 150
  },
  "hsl": {
    "h": 235.758,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40099,
    "c": 0.14869,
    "h": 274.2
  },
  "luminance": 0.05932
}

Semantic roles & 50–950 ramp

primary
#333A96
secondary
#B8B36D
accent
#CF4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333A96

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

Preview Lab → · Contrast checker → · Palette generator →

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