#333EA7#333EA7

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

Color values

HEX#333EA7
RGBrgb(51, 62, 167)
HSLhsl(234, 53%, 43%)
HSVhsv(234, 69%, 65%)
CMYKcmyk(69.5%, 62.9%, 0%, 34.5%)
CIE-LABlab(31.67, 31.06, -57.84)
CIE-LCHlch(31.67, 65.65, 298.24°)
OKLaboklab(42.33% 0.0071 -0.1669)
OKLCHoklch(42.33% 0.167 272.4)
XYZxyz(10.0606, 6.9381, 37.3607)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333EA7 #A79C33
analogous
#3378A7 #333EA7 #6233A7
triadic
#333EA7 #A7333E #3EA733
tetradic
#333EA7 #A73378 #A79C33 #33A762
square
#333EA7 #A73378 #A79C33 #33A762
split-complementary
#333EA7 #A76233 #78A733
monochromatic
#161B49 #252D78 #333EA7 #4E5AC9 #7D86D7

Accessibility & contrast

On white

8.79
#333EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#333EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333EA7
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333EA7#FFFFFF#000000##FFFFFF
##333EA71.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#00596C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333ea7;
/* rgb */ color: rgb(51, 62, 167);
/* oklch */ color: oklch(42.3% 0.167 272.4);
Tailwind
colors: {
  custom: {
    50: '#7a73c2',
    500: '#333ea7',
    950: '#000000',
  },
}
SCSS
$custom: #333ea7;
$custom-light: #7a73c2;
$custom-dark: #000000;
JSON
{
  "hex": "#333ea7",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 234.31,
    "s": 53.211,
    "l": 42.745
  },
  "oklch": {
    "l": 0.42331,
    "c": 0.16703,
    "h": 272.4
  },
  "luminance": 0.06939
}

Semantic roles & 50–950 ramp

primary
#333EA7
secondary
#C0B976
accent
#CF4BDD
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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