#333DAF#333DAF

#333DAF is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.179 H 272.4°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#333DAF
RGBrgb(51, 61, 175)
HSLhsl(235, 55%, 44%)
HSVhsv(235, 71%, 69%)
CMYKcmyk(70.9%, 65.1%, 0%, 31.4%)
CIE-LABlab(32.11, 34.56, -61.89)
CIE-LCHlch(32.11, 70.89, 299.18°)
OKLaboklab(42.87% 0.0074 -0.1788)
OKLCHoklch(42.87% 0.179 272.4)
XYZxyz(10.7692, 7.1354, 41.3588)
Luminance0.0714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333DAF #AFA533
analogous
#337BAF #333DAF #6733AF
triadic
#333DAF #AF333D #3DAF33
tetradic
#333DAF #AF337B #AFA533 #33AF67
square
#333DAF #AF337B #AFA533 #33AF67
split-complementary
#333DAF #AF6733 #7BAF33
monochromatic
#171C50 #252C80 #333DAF #525CCD #8289DB

Accessibility & contrast

On white

8.65
#333DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#333DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333DAF
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333DAF#FFFFFF#000000##FFFFFF
##333DAF1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005B70
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #333daf;
/* rgb */ color: rgb(51, 61, 175);
/* oklch */ color: oklch(42.9% 0.179 272.4);
Tailwind
colors: {
  custom: {
    50: '#7c72c8',
    500: '#333daf',
    950: '#000000',
  },
}
SCSS
$custom: #333daf;
$custom-light: #7c72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#333daf",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 175
  },
  "hsl": {
    "h": 235.161,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42873,
    "c": 0.17892,
    "h": 272.4
  },
  "luminance": 0.07136
}

Semantic roles & 50–950 ramp

primary
#333DAF
secondary
#C4BE7A
accent
#D24ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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