#3338C5#3338C5

#3338C5 is a dark, highly saturated blue. Relative luminance 0.076; OKLCH L 44.2% C 0.212 H 272.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#3338C5
RGBrgb(51, 56, 197)
HSLhsl(238, 59%, 49%)
HSVhsv(238, 74%, 77%)
CMYKcmyk(74.1%, 71.6%, 0%, 22.7%)
CIE-LABlab(33.05, 45.21, -73.34)
CIE-LCHlch(33.05, 86.15, 301.65°)
OKLaboklab(44.18% 0.0079 -0.2122)
OKLCHoklch(44.18% 0.212 272.1)
XYZxyz(12.8541, 7.5620, 53.5947)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338C5 #C5C033
analogous
#3381C5 #3338C5 #7733C5
triadic
#3338C5 #C53338 #38C533
tetradic
#3338C5 #C53381 #C5C033 #33C577
square
#3338C5 #C53381 #C5C033 #33C577
split-complementary
#3338C5 #C57733 #81C533
monochromatic
#1A1C64 #262A94 #3338C5 #5F64D6 #9093E2

Accessibility & contrast

On white

8.36
#3338C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#3338C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338C5
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338C5#FFFFFF#000000##FFFFFF
##3338C51.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C9
Deuteranopia (green-blind)
#0047C2
Tritanopia (blue-blind)
#00607B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #3338c5;
/* rgb */ color: rgb(51, 56, 197);
/* oklch */ color: oklch(44.2% 0.212 272.1);
Tailwind
colors: {
  custom: {
    50: '#8170d8',
    500: '#3338c5',
    950: '#000000',
  },
}
SCSS
$custom: #3338c5;
$custom-light: #8170d8;
$custom-dark: #000000;
JSON
{
  "hex": "#3338c5",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 237.945,
    "s": 58.871,
    "l": 48.627
  },
  "oklch": {
    "l": 0.4418,
    "c": 0.21238,
    "h": 272.1
  },
  "luminance": 0.07563
}

Semantic roles & 50–950 ramp

primary
#3338C5
secondary
#CDCB87
accent
#DD46E2
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #3338C5

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

Preview Lab → · Contrast checker → · Palette generator →

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