#333371#333371

#333371 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.7% C 0.104 H 279.7°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#333371
RGBrgb(51, 51, 113)
HSLhsl(240, 38%, 32%)
HSVhsv(240, 55%, 44%)
CMYKcmyk(54.9%, 54.9%, 0%, 55.7%)
CIE-LABlab(24.52, 19.06, -36.00)
CIE-LCHlch(24.52, 40.74, 297.90°)
OKLaboklab(35.69% 0.0176 -0.1028)
OKLCHoklch(35.69% 0.104 279.7)
XYZxyz(5.5288, 4.2634, 16.1512)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333371 #717133
analogous
#335271 #333371 #523371
triadic
#333371 #713333 #337133
tetradic
#333371 #713352 #717133 #337152
square
#333371 #713352 #717133 #337152
split-complementary
#333371 #715233 #527133
monochromatic
#0D0D1D #202047 #333371 #46469B #6565B9

Accessibility & contrast

On white

11.33
#333371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#333371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333371
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333371#FFFFFF#000000##FFFFFF
##3333711.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123D73
Deuteranopia (green-blind)
#0A3870
Tritanopia (blue-blind)
#19414C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #333371;
/* rgb */ color: rgb(51, 51, 113);
/* oklch */ color: oklch(35.7% 0.104 279.7);
Tailwind
colors: {
  custom: {
    50: '#706a9a',
    500: '#333371',
    950: '#000000',
  },
}
SCSS
$custom: #333371;
$custom-light: #706a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#333371",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 113
  },
  "hsl": {
    "h": 240,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3569,
    "c": 0.1043,
    "h": 279.7
  },
  "luminance": 0.04264
}

Semantic roles & 50–950 ramp

primary
#333371
secondary
#A2A25E
accent
#CE5ACE
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #333371

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

Preview Lab → · Contrast checker → · Palette generator →

#333371 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva