#3331C2#3331C2

#3331C2 is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.9% C 0.216 H 273.1°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#3331C2
RGBrgb(51, 49, 194)
HSLhsl(241, 60%, 48%)
HSVhsv(241, 75%, 76%)
CMYKcmyk(73.7%, 74.7%, 0%, 23.9%)
CIE-LABlab(31.33, 48.18, -74.42)
CIE-LCHlch(31.33, 88.65, 302.92°)
OKLaboklab(42.86% 0.0117 -0.2153)
OKLCHoklch(42.86% 0.216 273.1)
XYZxyz(12.1979, 6.7942, 51.6970)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331C2 #C0C231
analogous
#3177C2 #3331C2 #7C31C2
triadic
#3331C2 #C23331 #31C233
tetradic
#3331C2 #C23177 #C0C231 #31C27C
square
#3331C2 #C23177 #C0C231 #31C27C
split-complementary
#3331C2 #C27C31 #77C231
monochromatic
#191860 #262591 #3331C2 #5C5BD6 #8D8CE2

Accessibility & contrast

On white

8.90
#3331C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#3331C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331C2
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331C2#FFFFFF#000000##FFFFFF
##3331C21.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C6
Deuteranopia (green-blind)
#0043BF
Tritanopia (blue-blind)
#005B77
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #3331c2;
/* rgb */ color: rgb(51, 49, 194);
/* oklch */ color: oklch(42.9% 0.216 273.1);
Tailwind
colors: {
  custom: {
    50: '#816bd6',
    500: '#3331c2',
    950: '#000000',
  },
}
SCSS
$custom: #3331c2;
$custom-light: #816bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#3331c2",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 194
  },
  "hsl": {
    "h": 240.828,
    "s": 59.671,
    "l": 47.647
  },
  "oklch": {
    "l": 0.42864,
    "c": 0.21565,
    "h": 273.1
  },
  "luminance": 0.06795
}

Semantic roles & 50–950 ramp

primary
#3331C2
secondary
#CBCC83
accent
#E345E1
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #3331C2

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

Preview Lab → · Contrast checker → · Palette generator →

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