#333F8D#333F8D

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

Color values

HEX#333F8D
RGBrgb(51, 63, 141)
HSLhsl(232, 47%, 38%)
HSVhsv(232, 64%, 55%)
CMYKcmyk(63.8%, 55.3%, 0%, 44.7%)
CIE-LABlab(29.87, 20.96, -44.95)
CIE-LCHlch(29.87, 49.60, 295.00°)
OKLaboklab(40.35% 0.006 -0.129)
OKLCHoklch(40.35% 0.129 272.7)
XYZxyz(7.9489, 6.1812, 25.9683)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333F8D #8D8133
analogous
#336C8D #333F8D #54338D
triadic
#333F8D #8D333F #3F8D33
tetradic
#333F8D #8D336C #8D8133 #338D54
square
#333F8D #8D336C #8D8133 #338D54
split-complementary
#333F8D #8D5433 #6C8D33
monochromatic
#121733 #232B60 #333F8D #4353BA #6F7CCB

Accessibility & contrast

On white

9.39
#333F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#333F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333F8D
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333F8D#FFFFFF#000000##FFFFFF
##333F8D1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A90
Deuteranopia (green-blind)
#00438B
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #333f8d;
/* rgb */ color: rgb(51, 63, 141);
/* oklch */ color: oklch(40.3% 0.129 272.7);
Tailwind
colors: {
  custom: {
    50: '#7473af',
    500: '#333f8d',
    950: '#000000',
  },
}
SCSS
$custom: #333f8d;
$custom-light: #7473af;
$custom-dark: #000000;
JSON
{
  "hex": "#333f8d",
  "rgb": {
    "r": 51,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 232,
    "s": 46.875,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40345,
    "c": 0.12914,
    "h": 272.7
  },
  "luminance": 0.06182
}

Semantic roles & 50–950 ramp

primary
#333F8D
secondary
#B3A969
accent
#C551D7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #333F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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