#333F8F#333F8F

#333F8F is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.132 H 272.7°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#333F8F
RGBrgb(51, 63, 143)
HSLhsl(232, 47%, 38%)
HSVhsv(232, 64%, 56%)
CMYKcmyk(64.3%, 55.9%, 0%, 43.9%)
CIE-LABlab(30.01, 21.69, -45.94)
CIE-LCHlch(30.01, 50.81, 295.27°)
OKLaboklab(40.5% 0.0061 -0.1319)
OKLCHoklch(40.5% 0.132 272.7)
XYZxyz(8.0990, 6.2413, 26.7592)
Luminance0.0624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333F8F #8F8333
analogous
#336D8F #333F8F #55338F
triadic
#333F8F #8F333F #3F8F33
tetradic
#333F8F #8F336D #8F8333 #338F55
square
#333F8F #8F336D #8F8333 #338F55
split-complementary
#333F8F #8F5533 #6D8F33
monochromatic
#131735 #232B62 #333F8F #4353BC #707CCC

Accessibility & contrast

On white

9.34
#333F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#333F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333F8F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333F8F#FFFFFF#000000##FFFFFF
##333F8F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044B92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #333f8f;
/* rgb */ color: rgb(51, 63, 143);
/* oklch */ color: oklch(40.5% 0.132 272.7);
Tailwind
colors: {
  custom: {
    50: '#7573b0',
    500: '#333f8f',
    950: '#000000',
  },
}
SCSS
$custom: #333f8f;
$custom-light: #7573b0;
$custom-dark: #000000;
JSON
{
  "hex": "#333f8f",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 143
  },
  "hsl": {
    "h": 232.174,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40504,
    "c": 0.13206,
    "h": 272.7
  },
  "luminance": 0.06242
}

Semantic roles & 50–950 ramp

primary
#333F8F
secondary
#B4AA6A
accent
#C651D7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80

Preview Lab

Preview with #333F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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