#3331A5#3331A5

#3331A5 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.9% C 0.180 H 275.3°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#3331A5
RGBrgb(51, 49, 165)
HSLhsl(241, 54%, 42%)
HSVhsv(241, 70%, 65%)
CMYKcmyk(69.1%, 70.3%, 0%, 35.3%)
CIE-LABlab(28.42, 38.53, -61.94)
CIE-LCHlch(28.42, 72.95, 301.88°)
OKLaboklab(39.92% 0.0166 -0.179)
OKLCHoklch(39.92% 0.18 275.3)
XYZxyz(9.2528, 5.6162, 36.1864)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331A5 #A3A531
analogous
#3169A5 #3331A5 #6D31A5
triadic
#3331A5 #A53331 #31A533
tetradic
#3331A5 #A53169 #A3A531 #31A56D
square
#3331A5 #A53169 #A3A531 #31A56D
split-complementary
#3331A5 #A56D31 #69A531
monochromatic
#161547 #242376 #3331A5 #4C4AC9 #7B79D7

Accessibility & contrast

On white

9.89
#3331A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#3331A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331A5
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331A5#FFFFFF#000000##FFFFFF
##3331A51.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A9
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3331a5;
/* rgb */ color: rgb(51, 49, 165);
/* oklch */ color: oklch(39.9% 0.180 275.3);
Tailwind
colors: {
  custom: {
    50: '#7b6ac1',
    500: '#3331a5',
    950: '#000000',
  },
}
SCSS
$custom: #3331a5;
$custom-light: #7b6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#3331a5",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 241.034,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39915,
    "c": 0.17973,
    "h": 275.3
  },
  "luminance": 0.05617
}

Semantic roles & 50–950 ramp

primary
#3331A5
secondary
#BEC072
accent
#DE4ADB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3331A5

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

Preview Lab → · Contrast checker → · Palette generator →

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