#333DAB#333DAB

#333DAB is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.174 H 272.5°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#333DAB
RGBrgb(51, 61, 171)
HSLhsl(235, 54%, 44%)
HSVhsv(235, 70%, 67%)
CMYKcmyk(70.2%, 64.3%, 0%, 32.9%)
CIE-LABlab(31.76, 33.14, -60.07)
CIE-LCHlch(31.76, 68.61, 298.88°)
OKLaboklab(42.51% 0.0076 -0.1734)
OKLCHoklch(42.51% 0.174 272.5)
XYZxyz(10.3822, 6.9806, 39.3204)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333DAB #ABA133
analogous
#3379AB #333DAB #6533AB
triadic
#333DAB #AB333D #3DAB33
tetradic
#333DAB #AB3379 #ABA133 #33AB65
square
#333DAB #AB3379 #ABA133 #33AB65
split-complementary
#333DAB #AB6533 #79AB33
monochromatic
#171B4D #252C7C #333DAB #505BCB #7F87D9

Accessibility & contrast

On white

8.76
#333DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#333DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333DAB
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333DAB#FFFFFF#000000##FFFFFF
##333DAB1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #333dab;
/* rgb */ color: rgb(51, 61, 171);
/* oklch */ color: oklch(42.5% 0.174 272.5);
Tailwind
colors: {
  custom: {
    50: '#7b72c5',
    500: '#333dab',
    950: '#000000',
  },
}
SCSS
$custom: #333dab;
$custom-light: #7b72c5;
$custom-dark: #000000;
JSON
{
  "hex": "#333dab",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 235,
    "s": 54.054,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42509,
    "c": 0.17362,
    "h": 272.5
  },
  "luminance": 0.06982
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #333DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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