#333B8F#333B8F

#333B8F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.137 H 274.2°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#333B8F
RGBrgb(51, 59, 143)
HSLhsl(235, 47%, 38%)
HSVhsv(235, 64%, 56%)
CMYKcmyk(64.3%, 58.7%, 0%, 43.9%)
CIE-LABlab(28.94, 24.37, -47.68)
CIE-LCHlch(28.94, 53.55, 297.07°)
OKLaboklab(39.7% 0.01 -0.1371)
OKLCHoklch(39.7% 0.137 274.2)
XYZxyz(7.8855, 5.8143, 26.6880)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333B8F #8F8733
analogous
#33698F #333B8F #59338F
triadic
#333B8F #8F333B #3B8F33
tetradic
#333B8F #8F3369 #8F8733 #338F59
square
#333B8F #8F3369 #8F8733 #338F59
split-complementary
#333B8F #8F5933 #698F33
monochromatic
#131635 #232862 #333B8F #434EBC #7078CC

Accessibility & contrast

On white

9.71
#333B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#333B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333B8F
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333B8F#FFFFFF#000000##FFFFFF
##333B8F1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#004F5F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #333b8f;
/* rgb */ color: rgb(51, 59, 143);
/* oklch */ color: oklch(39.7% 0.137 274.2);
Tailwind
colors: {
  custom: {
    50: '#7570b0',
    500: '#333b8f',
    950: '#000000',
  },
}
SCSS
$custom: #333b8f;
$custom-light: #7570b0;
$custom-dark: #000000;
JSON
{
  "hex": "#333b8f",
  "rgb": {
    "r": 51,
    "g": 59,
    "b": 143
  },
  "hsl": {
    "h": 234.783,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39701,
    "c": 0.13745,
    "h": 274.2
  },
  "luminance": 0.05815
}

Semantic roles & 50–950 ramp

primary
#333B8F
secondary
#B4AE6A
accent
#CB51D7
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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