#333EB5#333EB5

#333EB5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.6% C 0.186 H 271.9°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#333EB5
RGBrgb(51, 62, 181)
HSLhsl(235, 56%, 45%)
HSVhsv(235, 72%, 71%)
CMYKcmyk(71.8%, 65.7%, 0%, 29%)
CIE-LABlab(32.88, 36.06, -64.19)
CIE-LCHlch(32.88, 73.63, 299.32°)
OKLaboklab(43.6% 0.0062 -0.1855)
OKLCHoklch(43.6% 0.186 271.9)
XYZxyz(11.4255, 7.4841, 44.5495)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333EB5 #B5AA33
analogous
#337FB5 #333EB5 #6933B5
triadic
#333EB5 #B5333E #3EB533
tetradic
#333EB5 #B5337F #B5AA33 #33B569
square
#333EB5 #B5337F #B5AA33 #33B569
split-complementary
#333EB5 #B56933 #7FB533
monochromatic
#181D56 #262E85 #333EB5 #5660CF #868DDD

Accessibility & contrast

On white

8.41
#333EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#333EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333EB5
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333EB5#FFFFFF#000000##FFFFFF
##333EB51.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0047B3
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #333eb5;
/* rgb */ color: rgb(51, 62, 181);
/* oklch */ color: oklch(43.6% 0.186 271.9);
Tailwind
colors: {
  custom: {
    50: '#7d73cc',
    500: '#333eb5',
    950: '#000000',
  },
}
SCSS
$custom: #333eb5;
$custom-light: #7d73cc;
$custom-dark: #000000;
JSON
{
  "hex": "#333eb5",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 234.923,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43601,
    "c": 0.18561,
    "h": 271.9
  },
  "luminance": 0.07485
}

Semantic roles & 50–950 ramp

primary
#333EB5
secondary
#C6C07D
accent
#D348DF
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #333EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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