#333B97#333B97

#333B97 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.149 H 273.9°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#333B97
RGBrgb(51, 59, 151)
HSLhsl(235, 50%, 40%)
HSVhsv(235, 66%, 59%)
CMYKcmyk(66.2%, 60.9%, 0%, 40.8%)
CIE-LABlab(29.58, 27.26, -51.55)
CIE-LCHlch(29.58, 58.32, 297.87°)
OKLaboklab(40.38% 0.01 -0.1485)
OKLCHoklch(40.38% 0.149 273.9)
XYZxyz(8.5133, 6.0654, 29.9942)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333B97 #978F33
analogous
#336D97 #333B97 #5D3397
triadic
#333B97 #97333B #3B9733
tetradic
#333B97 #97336D #978F33 #33975D
square
#333B97 #97336D #978F33 #33975D
split-complementary
#333B97 #975D33 #6D9733
monochromatic
#14173C #242969 #333B97 #4750C1 #747CD0

Accessibility & contrast

On white

9.49
#333B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#333B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333B97
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333B97#FFFFFF#000000##FFFFFF
##333B971.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333b97;
/* rgb */ color: rgb(51, 59, 151);
/* oklch */ color: oklch(40.4% 0.149 273.9);
Tailwind
colors: {
  custom: {
    50: '#7771b6',
    500: '#333b97',
    950: '#000000',
  },
}
SCSS
$custom: #333b97;
$custom-light: #7771b6;
$custom-dark: #000000;
JSON
{
  "hex": "#333b97",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 151
  },
  "hsl": {
    "h": 235.2,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40375,
    "c": 0.1488,
    "h": 273.9
  },
  "luminance": 0.06066
}

Semantic roles & 50–950 ramp

primary
#333B97
secondary
#B8B26D
accent
#CE4FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #333B97

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

Preview Lab → · Contrast checker → · Palette generator →

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