#333AD7#333AD7

#333AD7 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.3% C 0.232 H 271.1°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#333AD7
RGBrgb(51, 58, 215)
HSLhsl(237, 67%, 52%)
HSVhsv(237, 76%, 84%)
CMYKcmyk(76.3%, 73%, 0%, 15.7%)
CIE-LABlab(35.27, 50.04, -80.13)
CIE-LCHlch(35.27, 94.47, 301.99°)
OKLaboklab(46.3% 0.0043 -0.232)
OKLCHoklch(46.3% 0.232 271.1)
XYZxyz(15.1399, 8.6346, 65.1455)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333AD7 #D7D033
analogous
#338CD7 #333AD7 #7E33D7
triadic
#333AD7 #D7333A #3AD733
tetradic
#333AD7 #D7338C #D7D033 #33D77E
square
#333AD7 #D7338C #D7D033 #33D77E
split-complementary
#333AD7 #D77E33 #8CD733
monochromatic
#181C78 #2227AB #333AD7 #666BE1 #999DEB

Accessibility & contrast

On white

7.70
#333AD7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#333AD7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333AD7
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333AD7#FFFFFF#000000##FFFFFF
##333AD71.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BDC
Deuteranopia (green-blind)
#004BD4
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #333ad7;
/* rgb */ color: rgb(51, 58, 215);
/* oklch */ color: oklch(46.3% 0.232 271.1);
Tailwind
colors: {
  custom: {
    50: '#8572e5',
    500: '#333ad7',
    950: '#000000',
  },
}
SCSS
$custom: #333ad7;
$custom-light: #8572e5;
$custom-dark: #000000;
JSON
{
  "hex": "#333ad7",
  "rgb": {
    "r": 51,
    "g": 58,
    "b": 215
  },
  "hsl": {
    "h": 237.439,
    "s": 67.213,
    "l": 52.157
  },
  "oklch": {
    "l": 0.46303,
    "c": 0.23205,
    "h": 271.1
  },
  "luminance": 0.08636
}

Semantic roles & 50–950 ramp

primary
#333AD7
secondary
#D7D48F
accent
#E33EEA
background
#F9F7FE
surface
#F1EDFC
border
#CBC8D5
text
#0D0816
muted
#7E7B84

Preview Lab

Preview with #333AD7

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

Preview Lab → · Contrast checker → · Palette generator →

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