#333A8F#333A8F

#333A8F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.139 H 274.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#333A8F
RGBrgb(51, 58, 143)
HSLhsl(235, 47%, 38%)
HSVhsv(235, 64%, 56%)
CMYKcmyk(64.3%, 59.4%, 0%, 43.9%)
CIE-LABlab(28.68, 25.04, -48.11)
CIE-LCHlch(28.68, 54.24, 297.49°)
OKLaboklab(39.51% 0.011 -0.1383)
OKLCHoklch(39.51% 0.139 274.6)
XYZxyz(7.8346, 5.7124, 26.6710)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333A8F #8F8833
analogous
#33688F #333A8F #5A338F
triadic
#333A8F #8F333A #3A8F33
tetradic
#333A8F #8F3368 #8F8833 #338F5A
square
#333A8F #8F3368 #8F8833 #338F5A
split-complementary
#333A8F #8F5A33 #688F33
monochromatic
#131535 #232862 #333A8F #434CBC #7077CC

Accessibility & contrast

On white

9.80
#333A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#333A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333A8F
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333A8F#FFFFFF#000000##FFFFFF
##333A8F1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333a8f;
/* rgb */ color: rgb(51, 58, 143);
/* oklch */ color: oklch(39.5% 0.139 274.6);
Tailwind
colors: {
  custom: {
    50: '#7570b0',
    500: '#333a8f',
    950: '#000000',
  },
}
SCSS
$custom: #333a8f;
$custom-light: #7570b0;
$custom-dark: #000000;
JSON
{
  "hex": "#333a8f",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 143
  },
  "hsl": {
    "h": 235.435,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39505,
    "c": 0.13879,
    "h": 274.6
  },
  "luminance": 0.05713
}

Semantic roles & 50–950 ramp

primary
#333A8F
secondary
#B4AE6A
accent
#CD51D7
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #333A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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