#333DCC#333DCC

#333DCC is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.6% C 0.216 H 271.2°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#333DCC
RGBrgb(51, 61, 204)
HSLhsl(236, 60%, 50%)
HSVhsv(236, 75%, 80%)
CMYKcmyk(75%, 70.1%, 0%, 20%)
CIE-LABlab(34.80, 44.64, -74.54)
CIE-LCHlch(34.80, 86.89, 300.92°)
OKLaboklab(45.64% 0.0045 -0.2157)
OKLCHoklch(45.64% 0.216 271.2)
XYZxyz(13.9294, 8.3994, 58.0022)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#333DCC #CCC233
analogous
#338ACC #333DCC #7533CC
triadic
#333DCC #CC333D #3DCC33
tetradic
#333DCC #CC338A #CCC233 #33CC75
square
#333DCC #CC338A #CCC233 #33CC75
split-complementary
#333DCC #CC7533 #8ACC33
monochromatic
#1B206A #272E9B #333DCC #646CD8 #959AE4

Accessibility & contrast

On white

7.84
#333DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#333DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #333DCC
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##333DCC#FFFFFF#000000##FFFFFF
##333DCC1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#004AC9
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #333dcc;
/* rgb */ color: rgb(51, 61, 204);
/* oklch */ color: oklch(45.6% 0.216 271.2);
Tailwind
colors: {
  custom: {
    50: '#8373dd',
    500: '#333dcc',
    950: '#000000',
  },
}
SCSS
$custom: #333dcc;
$custom-light: #8373dd;
$custom-dark: #000000;
JSON
{
  "hex": "#333dcc",
  "rgb": {
    "r": 51,
    "g": 61,
    "b": 204
  },
  "hsl": {
    "h": 236.078,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.4564,
    "c": 0.21579,
    "h": 271.2
  },
  "luminance": 0.08401
}

Semantic roles & 50–950 ramp

primary
#333DCC
secondary
#D0CB8B
accent
#D945E3
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #333DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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