#3338CC#3338CC

#3338CC is a dark, highly saturated blue. Relative luminance 0.079; OKLCH L 44.9% C 0.221 H 271.8°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#3338CC
RGBrgb(51, 56, 204)
HSLhsl(238, 60%, 50%)
HSVhsv(238, 75%, 80%)
CMYKcmyk(75%, 72.5%, 0%, 20%)
CIE-LABlab(33.75, 47.54, -76.27)
CIE-LCHlch(33.75, 89.87, 301.94°)
OKLaboklab(44.89% 0.0068 -0.2208)
OKLCHoklch(44.89% 0.221 271.8)
XYZxyz(13.6748, 7.8903, 57.9173)
Luminance0.0789 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338CC #CCC733
analogous
#3385CC #3338CC #7A33CC
triadic
#3338CC #CC3338 #38CC33
tetradic
#3338CC #CC3385 #CCC733 #33CC7A
square
#3338CC #CC3385 #CCC733 #33CC7A
split-complementary
#3338CC #CC7A33 #85CC33
monochromatic
#1B1D6A #272B9B #3338CC #6468D8 #9598E4

Accessibility & contrast

On white

8.14
#3338CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#3338CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338CC
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338CC#FFFFFF#000000##FFFFFF
##3338CC1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057D0
Deuteranopia (green-blind)
#0048C9
Tritanopia (blue-blind)
#00627F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #3338cc;
/* rgb */ color: rgb(51, 56, 204);
/* oklch */ color: oklch(44.9% 0.221 271.8);
Tailwind
colors: {
  custom: {
    50: '#8370dd',
    500: '#3338cc',
    950: '#000000',
  },
}
SCSS
$custom: #3338cc;
$custom-light: #8370dd;
$custom-dark: #000000;
JSON
{
  "hex": "#3338cc",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 204
  },
  "hsl": {
    "h": 238.039,
    "s": 60,
    "l": 50
  },
  "oklch": {
    "l": 0.44889,
    "c": 0.22087,
    "h": 271.8
  },
  "luminance": 0.07892
}

Semantic roles & 50–950 ramp

primary
#3338CC
secondary
#D0CD8B
accent
#DE45E3
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0D0715
muted
#7D7A83

Preview Lab

Preview with #3338CC

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

Preview Lab → · Contrast checker → · Palette generator →

#3338CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva