#333D8F#333D8F

#333D8F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.1% C 0.135 H 273.4°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#333D8F
RGBrgb(51, 61, 143)
HSLhsl(233, 47%, 38%)
HSVhsv(233, 64%, 56%)
CMYKcmyk(64.3%, 57.3%, 0%, 43.9%)
CIE-LABlab(29.47, 23.03, -46.82)
CIE-LCHlch(29.47, 52.18, 296.19°)
OKLaboklab(40.1% 0.0081 -0.1345)
OKLCHoklch(40.1% 0.135 273.4)
XYZxyz(7.9903, 6.0238, 26.7229)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333D8F #8F8533
analogous
#336B8F #333D8F #57338F
triadic
#333D8F #8F333D #3D8F33
tetradic
#333D8F #8F336B #8F8533 #338F57
square
#333D8F #8F336B #8F8533 #338F57
split-complementary
#333D8F #8F5733 #6B8F33
monochromatic
#131735 #232A62 #333D8F #4350BC #707ACC

Accessibility & contrast

On white

9.52
#333D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#333D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333D8F
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333D8F#FFFFFF#000000##FFFFFF
##333D8F1.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #333d8f;
/* rgb */ color: rgb(51, 61, 143);
/* oklch */ color: oklch(40.1% 0.135 273.4);
Tailwind
colors: {
  custom: {
    50: '#7572b0',
    500: '#333d8f',
    950: '#000000',
  },
}
SCSS
$custom: #333d8f;
$custom-light: #7572b0;
$custom-dark: #000000;
JSON
{
  "hex": "#333d8f",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 143
  },
  "hsl": {
    "h": 233.478,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40099,
    "c": 0.13476,
    "h": 273.4
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#333D8F
secondary
#B4AC6A
accent
#C851D7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #333D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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