#333C96#333C96

#333C96 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.5% C 0.146 H 273.6°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#333C96
RGBrgb(51, 60, 150)
HSLhsl(235, 49%, 39%)
HSVhsv(235, 66%, 59%)
CMYKcmyk(66%, 60%, 0%, 41.2%)
CIE-LABlab(29.75, 26.24, -50.65)
CIE-LCHlch(29.75, 57.04, 297.38°)
OKLaboklab(40.48% 0.0091 -0.1458)
OKLCHoklch(40.48% 0.146 273.6)
XYZxyz(8.4843, 6.1368, 29.5857)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C96 #968D33
analogous
#336E96 #333C96 #5B3396
triadic
#333C96 #96333C #3C9633
tetradic
#333C96 #96336E #968D33 #33965B
square
#333C96 #96336E #968D33 #33965B
split-complementary
#333C96 #965B33 #6E9633
monochromatic
#14173B #232A68 #333C96 #4651C0 #747CD0

Accessibility & contrast

On white

9.43
#333C96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#333C96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333C96
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C96#FFFFFF#000000##FFFFFF
##333C961.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#004294
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #333c96;
/* rgb */ color: rgb(51, 60, 150);
/* oklch */ color: oklch(40.5% 0.146 273.6);
Tailwind
colors: {
  custom: {
    50: '#7771b6',
    500: '#333c96',
    950: '#000000',
  },
}
SCSS
$custom: #333c96;
$custom-light: #7771b6;
$custom-dark: #000000;
JSON
{
  "hex": "#333c96",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 150
  },
  "hsl": {
    "h": 234.545,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.40482,
    "c": 0.14609,
    "h": 273.6
  },
  "luminance": 0.06138
}

Semantic roles & 50–950 ramp

primary
#333C96
secondary
#B8B16D
accent
#CC4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333C96

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

Preview Lab → · Contrast checker → · Palette generator →

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