#333CAB#333CAB

#333CAB is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.175 H 272.7°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#333CAB
RGBrgb(51, 60, 171)
HSLhsl(236, 54%, 44%)
HSVhsv(236, 70%, 67%)
CMYKcmyk(70.2%, 64.9%, 0%, 32.9%)
CIE-LABlab(31.52, 33.78, -60.47)
CIE-LCHlch(31.52, 69.27, 299.19°)
OKLaboklab(42.33% 0.0083 -0.1746)
OKLCHoklch(42.33% 0.175 272.7)
XYZxyz(10.3293, 6.8748, 39.3028)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333CAB #ABA233
analogous
#3378AB #333CAB #6633AB
triadic
#333CAB #AB333C #3CAB33
tetradic
#333CAB #AB3378 #ABA233 #33AB66
square
#333CAB #AB3378 #ABA233 #33AB66
split-complementary
#333CAB #AB6633 #78AB33
monochromatic
#171B4D #252B7C #333CAB #5059CB #7F86D9

Accessibility & contrast

On white

8.84
#333CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#333CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333CAB
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333CAB#FFFFFF#000000##FFFFFF
##333CAB1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0045A9
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333cab;
/* rgb */ color: rgb(51, 60, 171);
/* oklch */ color: oklch(42.3% 0.175 272.7);
Tailwind
colors: {
  custom: {
    50: '#7b72c5',
    500: '#333cab',
    950: '#000000',
  },
}
SCSS
$custom: #333cab;
$custom-light: #7b72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#333cab",
  "rgb": {
    "r": 51,
    "g": 60,
    "b": 171
  },
  "hsl": {
    "h": 235.5,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42331,
    "c": 0.17482,
    "h": 272.7
  },
  "luminance": 0.06876
}

Semantic roles & 50–950 ramp

primary
#333CAB
secondary
#C2BC78
accent
#D24ADD
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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