#333F97#333F97

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

Color values

HEX#333F97
RGBrgb(51, 63, 151)
HSLhsl(233, 50%, 40%)
HSVhsv(233, 66%, 59%)
CMYKcmyk(66.2%, 58.3%, 0%, 40.8%)
CIE-LABlab(30.62, 24.61, -49.85)
CIE-LCHlch(30.62, 55.60, 296.27°)
OKLaboklab(41.15% 0.0064 -0.1434)
OKLCHoklch(41.15% 0.144 272.6)
XYZxyz(8.7268, 6.4924, 30.0654)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333F97 #978B33
analogous
#337197 #333F97 #593397
triadic
#333F97 #97333F #3F9733
tetradic
#333F97 #973371 #978B33 #339759
square
#333F97 #973371 #978B33 #339759
split-complementary
#333F97 #975933 #719733
monochromatic
#14193C #242C69 #333F97 #4755C1 #747FD0

Accessibility & contrast

On white

9.14
#333F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#333F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333F97
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333F97#FFFFFF#000000##FFFFFF
##333F971.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333f97;
/* rgb */ color: rgb(51, 63, 151);
/* oklch */ color: oklch(41.2% 0.144 272.6);
Tailwind
colors: {
  custom: {
    50: '#7773b6',
    500: '#333f97',
    950: '#000000',
  },
}
SCSS
$custom: #333f97;
$custom-light: #7773b6;
$custom-dark: #000000;
JSON
{
  "hex": "#333f97",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 232.8,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41151,
    "c": 0.14356,
    "h": 272.6
  },
  "luminance": 0.06493
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333F97

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

Preview Lab → · Contrast checker → · Palette generator →

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