#333C97#333C97

#333C97 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.6% C 0.147 H 273.5°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#333C97
RGBrgb(51, 60, 151)
HSLhsl(235, 50%, 40%)
HSVhsv(235, 66%, 59%)
CMYKcmyk(66.2%, 60.3%, 0%, 40.8%)
CIE-LABlab(29.84, 26.60, -51.13)
CIE-LCHlch(29.84, 57.64, 297.48°)
OKLaboklab(40.57% 0.0091 -0.1472)
OKLCHoklch(40.57% 0.147 273.5)
XYZxyz(8.5652, 6.1691, 30.0115)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333C97 #978E33
analogous
#336E97 #333C97 #5C3397
triadic
#333C97 #97333C #3C9733
tetradic
#333C97 #97336E #978E33 #33975C
square
#333C97 #97336E #978E33 #33975C
split-complementary
#333C97 #975C33 #6E9733
monochromatic
#14183C #242A69 #333C97 #4752C1 #747DD0

Accessibility & contrast

On white

9.40
#333C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333C97
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333C97#FFFFFF#000000##FFFFFF
##333C971.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333c97;
/* rgb */ color: rgb(51, 60, 151);
/* oklch */ color: oklch(40.6% 0.147 273.5);
Tailwind
colors: {
  custom: {
    50: '#7771b6',
    500: '#333c97',
    950: '#000000',
  },
}
SCSS
$custom: #333c97;
$custom-light: #7771b6;
$custom-dark: #000000;
JSON
{
  "hex": "#333c97",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 151
  },
  "hsl": {
    "h": 234.6,
    "s": 49.505,
    "l": 39.608
  },
  "oklch": {
    "l": 0.40566,
    "c": 0.14749,
    "h": 273.5
  },
  "luminance": 0.0617
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333C97

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

Preview Lab → · Contrast checker → · Palette generator →

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