#333EA6#333EA6

#333EA6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.166 H 272.5°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#333EA6
RGBrgb(51, 62, 166)
HSLhsl(234, 53%, 43%)
HSVhsv(234, 69%, 65%)
CMYKcmyk(69.3%, 62.7%, 0%, 34.9%)
CIE-LABlab(31.58, 30.70, -57.37)
CIE-LCHlch(31.58, 65.07, 298.15°)
OKLaboklab(42.24% 0.0071 -0.1655)
OKLCHoklch(42.24% 0.166 272.5)
XYZxyz(9.9685, 6.9013, 36.8757)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333EA6 #A69B33
analogous
#3377A6 #333EA6 #6233A6
triadic
#333EA6 #A6333E #3EA633
tetradic
#333EA6 #A63377 #A69B33 #33A662
square
#333EA6 #A63377 #A69B33 #33A662
split-complementary
#333EA6 #A66233 #77A633
monochromatic
#161B48 #252D77 #333EA6 #4E59C9 #7C85D7

Accessibility & contrast

On white

8.82
#333EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #333EA6
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333EA6#FFFFFF#000000##FFFFFF
##333EA61.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333ea6;
/* rgb */ color: rgb(51, 62, 166);
/* oklch */ color: oklch(42.2% 0.166 272.5);
Tailwind
colors: {
  custom: {
    50: '#7a73c1',
    500: '#333ea6',
    950: '#000000',
  },
}
SCSS
$custom: #333ea6;
$custom-light: #7a73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333ea6",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 166
  },
  "hsl": {
    "h": 234.261,
    "s": 52.995,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42243,
    "c": 0.16567,
    "h": 272.5
  },
  "luminance": 0.06902
}

Semantic roles & 50–950 ramp

primary
#333EA6
secondary
#C0B975
accent
#CF4BDC
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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