#333372#333372

#333372 is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.8% C 0.106 H 279.6°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#333372
RGBrgb(51, 51, 114)
HSLhsl(240, 38%, 32%)
HSVhsv(240, 55%, 45%)
CMYKcmyk(55.3%, 55.3%, 0%, 55.3%)
CIE-LABlab(24.60, 19.41, -36.53)
CIE-LCHlch(24.60, 41.36, 297.99°)
OKLaboklab(35.77% 0.0177 -0.1043)
OKLCHoklch(35.77% 0.106 279.6)
XYZxyz(5.5854, 4.2860, 16.4493)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333372 #727233
analogous
#335372 #333372 #533372
triadic
#333372 #723333 #337233
tetradic
#333372 #723353 #727233 #337253
square
#333372 #723353 #727233 #337253
split-complementary
#333372 #725333 #537233
monochromatic
#0D0D1D #202048 #333372 #46469C #6565BA

Accessibility & contrast

On white

11.31
#333372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#333372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333372
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333372#FFFFFF#000000##FFFFFF
##3333721.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D74
Deuteranopia (green-blind)
#083871
Tritanopia (blue-blind)
#18414D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #333372;
/* rgb */ color: rgb(51, 51, 114);
/* oklch */ color: oklch(35.8% 0.106 279.6);
Tailwind
colors: {
  custom: {
    50: '#706a9b',
    500: '#333372',
    950: '#000000',
  },
}
SCSS
$custom: #333372;
$custom-light: #706a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#333372",
  "rgb": {
    "r": 51,
    "g": 51,
    "b": 114
  },
  "hsl": {
    "h": 240,
    "s": 38.182,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35767,
    "c": 0.10583,
    "h": 279.6
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333372

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

Preview Lab → · Contrast checker → · Palette generator →

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