#333EA5#333EA5

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

Color values

HEX#333EA5
RGBrgb(51, 62, 165)
HSLhsl(234, 53%, 42%)
HSVhsv(234, 69%, 65%)
CMYKcmyk(69.1%, 62.4%, 0%, 35.3%)
CIE-LABlab(31.50, 30.34, -56.91)
CIE-LCHlch(31.50, 64.49, 298.07°)
OKLaboklab(42.15% 0.0071 -0.1642)
OKLCHoklch(42.15% 0.164 272.5)
XYZxyz(9.8771, 6.8647, 36.3945)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333EA5 #A59A33
analogous
#3377A5 #333EA5 #6133A5
triadic
#333EA5 #A5333E #3EA533
tetradic
#333EA5 #A53377 #A59A33 #33A561
square
#333EA5 #A53377 #A59A33 #33A561
split-complementary
#333EA5 #A56133 #77A533
monochromatic
#161B48 #252C76 #333EA5 #4D59C8 #7C85D6

Accessibility & contrast

On white

8.85
#333EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#333EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333EA5
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333EA5#FFFFFF#000000##FFFFFF
##333EA51.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0045A3
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #333ea5;
/* rgb */ color: rgb(51, 62, 165);
/* oklch */ color: oklch(42.2% 0.164 272.5);
Tailwind
colors: {
  custom: {
    50: '#7a73c1',
    500: '#333ea5',
    950: '#000000',
  },
}
SCSS
$custom: #333ea5;
$custom-light: #7a73c1;
$custom-dark: #000000;
JSON
{
  "hex": "#333ea5",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 165
  },
  "hsl": {
    "h": 234.211,
    "s": 52.778,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42154,
    "c": 0.16432,
    "h": 272.5
  },
  "luminance": 0.06866
}

Semantic roles & 50–950 ramp

primary
#333EA5
secondary
#BFB875
accent
#CE4CDC
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #333EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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