#333F96#333F96

#333F96 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.142 H 272.6°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#333F96
RGBrgb(51, 63, 150)
HSLhsl(233, 49%, 39%)
HSVhsv(233, 66%, 59%)
CMYKcmyk(66%, 58%, 0%, 41.2%)
CIE-LABlab(30.54, 24.24, -49.37)
CIE-LCHlch(30.54, 55.00, 296.15°)
OKLaboklab(41.07% 0.0064 -0.142)
OKLCHoklch(41.07% 0.142 272.6)
XYZxyz(8.6459, 6.4601, 29.6395)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333F96 #968A33
analogous
#337196 #333F96 #593396
triadic
#333F96 #96333F #3F9633
tetradic
#333F96 #963371 #968A33 #339659
square
#333F96 #963371 #968A33 #339659
split-complementary
#333F96 #965933 #719633
monochromatic
#14193B #232C68 #333F96 #4655C0 #747FD0

Accessibility & contrast

On white

9.16
#333F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#333F96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333F96
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333F96#FFFFFF#000000##FFFFFF
##333F961.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#004494
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #333f96;
/* rgb */ color: rgb(51, 63, 150);
/* oklch */ color: oklch(41.1% 0.142 272.6);
Tailwind
colors: {
  custom: {
    50: '#7673b6',
    500: '#333f96',
    950: '#000000',
  },
}
SCSS
$custom: #333f96;
$custom-light: #7673b6;
$custom-dark: #000000;
JSON
{
  "hex": "#333f96",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 150
  },
  "hsl": {
    "h": 232.727,
    "s": 49.254,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41069,
    "c": 0.14214,
    "h": 272.6
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#333F96
secondary
#B8AF6D
accent
#C84FD9
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #333F96

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

Preview Lab → · Contrast checker → · Palette generator →

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