#333CA8#333CA8

#333CA8 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.171 H 272.9°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#333CA8
RGBrgb(51, 60, 168)
HSLhsl(235, 53%, 43%)
HSVhsv(235, 70%, 66%)
CMYKcmyk(69.6%, 64.3%, 0%, 34.1%)
CIE-LABlab(31.26, 32.71, -59.10)
CIE-LCHlch(31.26, 67.55, 298.96°)
OKLaboklab(42.06% 0.0085 -0.1706)
OKLCHoklch(42.06% 0.171 272.9)
XYZxyz(10.0466, 6.7617, 37.8139)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333CA8 #A89F33
analogous
#3376A8 #333CA8 #6533A8
triadic
#333CA8 #A8333C #3CA833
tetradic
#333CA8 #A83376 #A89F33 #33A865
square
#333CA8 #A83376 #A89F33 #33A865
split-complementary
#333CA8 #A86533 #76A833
monochromatic
#161A4A #252B79 #333CA8 #4F58C9 #7E85D8

Accessibility & contrast

On white

8.93
#333CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#333CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333CA8
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333CA8#FFFFFF#000000##FFFFFF
##333CA81.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333ca8;
/* rgb */ color: rgb(51, 60, 168);
/* oklch */ color: oklch(42.1% 0.171 272.9);
Tailwind
colors: {
  custom: {
    50: '#7a72c3',
    500: '#333ca8',
    950: '#000000',
  },
}
SCSS
$custom: #333ca8;
$custom-light: #7a72c3;
$custom-dark: #000000;
JSON
{
  "hex": "#333ca8",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 168
  },
  "hsl": {
    "h": 235.385,
    "s": 53.425,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42058,
    "c": 0.17082,
    "h": 272.9
  },
  "luminance": 0.06763
}

Semantic roles & 50–950 ramp

primary
#333CA8
secondary
#C1BB76
accent
#D24BDD
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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