#333ED6#333ED6

#333ED6 is a mid, highly saturated blue. Relative luminance 0.090; OKLCH L 46.8% C 0.227 H 270.7°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#333ED6
RGBrgb(51, 62, 214)
HSLhsl(236, 67%, 52%)
HSVhsv(236, 76%, 84%)
CMYKcmyk(76.2%, 71%, 0%, 16.1%)
CIE-LABlab(35.99, 47.43, -78.37)
CIE-LCHlch(35.99, 91.61, 301.19°)
OKLaboklab(46.79% 0.0027 -0.2269)
OKLCHoklch(46.79% 0.227 270.7)
XYZxyz(15.2213, 9.0024, 64.5407)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333ED6 #D6CB33
analogous
#3390D6 #333ED6 #7A33D6
triadic
#333ED6 #D6333E #3ED633
tetradic
#333ED6 #D63390 #D6CB33 #33D67A
square
#333ED6 #D63390 #D6CB33 #33D67A
split-complementary
#333ED6 #D67A33 #90D633
monochromatic
#181E77 #222BAA #333ED6 #666EE0 #999EEA

Accessibility & contrast

On white

7.50
#333ED6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#333ED6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333ED6
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333ED6#FFFFFF#000000##FFFFFF
##333ED61.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DDB
Deuteranopia (green-blind)
#004DD3
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #333ed6;
/* rgb */ color: rgb(51, 62, 214);
/* oklch */ color: oklch(46.8% 0.227 270.7);
Tailwind
colors: {
  custom: {
    50: '#8574e4',
    500: '#333ed6',
    950: '#000000',
  },
}
SCSS
$custom: #333ed6;
$custom-light: #8574e4;
$custom-dark: #000000;
JSON
{
  "hex": "#333ed6",
  "rgb": {
    "r": 51,
    "g": 62,
    "b": 214
  },
  "hsl": {
    "h": 235.951,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.46786,
    "c": 0.22692,
    "h": 270.7
  },
  "luminance": 0.09004
}

Semantic roles & 50–950 ramp

primary
#333ED6
secondary
#D6D18F
accent
#DE3EE9
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #333ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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