#333A71#333A71

#333A71 is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.2% C 0.094 H 275.4°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#333A71
RGBrgb(51, 58, 113)
HSLhsl(233, 38%, 32%)
HSVhsv(233, 55%, 44%)
CMYKcmyk(54.9%, 48.7%, 0%, 55.7%)
CIE-LABlab(26.51, 14.27, -32.82)
CIE-LCHlch(26.51, 35.78, 293.50°)
OKLaboklab(37.19% 0.0089 -0.0934)
OKLCHoklch(37.19% 0.094 275.4)
XYZxyz(5.8580, 4.9218, 16.2609)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333A71 #716A33
analogous
#335971 #333A71 #4B3371
triadic
#333A71 #71333A #3A7133
tetradic
#333A71 #713359 #716A33 #33714B
square
#333A71 #713359 #716A33 #33714B
split-complementary
#333A71 #714B33 #597133
monochromatic
#0D0F1D #202447 #333A71 #46509B #656EB9

Accessibility & contrast

On white

10.58
#333A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#333A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333A71
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333A71#FFFFFF#000000##FFFFFF
##333A711.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224173
Deuteranopia (green-blind)
#1B3C70
Tritanopia (blue-blind)
#174650
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #333a71;
/* rgb */ color: rgb(51, 58, 113);
/* oklch */ color: oklch(37.2% 0.094 275.4);
Tailwind
colors: {
  custom: {
    50: '#70709a',
    500: '#333a71',
    950: '#000000',
  },
}
SCSS
$custom: #333a71;
$custom-light: #70709a;
$custom-dark: #000000;
JSON
{
  "hex": "#333a71",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 113
  },
  "hsl": {
    "h": 233.226,
    "s": 37.805,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3719,
    "c": 0.09379,
    "h": 275.4
  },
  "luminance": 0.04922
}

Semantic roles & 50–950 ramp

primary
#333A71
secondary
#A29A5E
accent
#C15ACE
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #333A71

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

Preview Lab → · Contrast checker → · Palette generator →

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