#3338C2#3338C2

#3338C2 is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 43.9% C 0.209 H 272.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#3338C2
RGBrgb(51, 56, 194)
HSLhsl(238, 58%, 48%)
HSVhsv(238, 74%, 76%)
CMYKcmyk(73.7%, 71.1%, 0%, 23.9%)
CIE-LABlab(32.76, 44.20, -72.07)
CIE-LCHlch(32.76, 84.54, 301.52°)
OKLaboklab(43.88% 0.0083 -0.2085)
OKLCHoklch(43.88% 0.209 272.3)
XYZxyz(12.5137, 7.4259, 51.8023)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3338C2 #C2BD33
analogous
#337FC2 #3338C2 #7533C2
triadic
#3338C2 #C23338 #38C233
tetradic
#3338C2 #C2337F #C2BD33 #33C275
square
#3338C2 #C2337F #C2BD33 #33C275
split-complementary
#3338C2 #C27533 #7FC233
monochromatic
#1A1C61 #262A92 #3338C2 #5E62D5 #8E91E1

Accessibility & contrast

On white

8.45
#3338C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#3338C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3338C2
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3338C2#FFFFFF#000000##FFFFFF
##3338C21.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C6
Deuteranopia (green-blind)
#0046BF
Tritanopia (blue-blind)
#005F79
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #3338c2;
/* rgb */ color: rgb(51, 56, 194);
/* oklch */ color: oklch(43.9% 0.209 272.3);
Tailwind
colors: {
  custom: {
    50: '#8170d6',
    500: '#3338c2',
    950: '#000000',
  },
}
SCSS
$custom: #3338c2;
$custom-light: #8170d6;
$custom-dark: #000000;
JSON
{
  "hex": "#3338c2",
  "rgb": {
    "r": 51,
    "g": 56,
    "b": 194
  },
  "hsl": {
    "h": 237.902,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.43879,
    "c": 0.2087,
    "h": 272.3
  },
  "luminance": 0.07427
}

Semantic roles & 50–950 ramp

primary
#3338C2
secondary
#CCC985
accent
#DC46E2
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3338C2

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

Preview Lab → · Contrast checker → · Palette generator →

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