#3331A3#3331A3

#3331A3 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.7% C 0.177 H 275.5°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#3331A3
RGBrgb(51, 49, 163)
HSLhsl(241, 54%, 42%)
HSVhsv(241, 70%, 64%)
CMYKcmyk(68.7%, 69.9%, 0%, 36.1%)
CIE-LABlab(28.23, 37.85, -61.05)
CIE-LCHlch(28.23, 71.83, 301.80°)
OKLaboklab(39.72% 0.0169 -0.1763)
OKLCHoklch(39.72% 0.177 275.5)
XYZxyz(9.0722, 5.5440, 35.2352)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331A3 #A1A331
analogous
#3168A3 #3331A3 #6C31A3
triadic
#3331A3 #A33331 #31A333
tetradic
#3331A3 #A33168 #A1A331 #31A36C
square
#3331A3 #A33168 #A1A331 #31A36C
split-complementary
#3331A3 #A36C31 #68A331
monochromatic
#161545 #242374 #3331A3 #4B49C8 #7A78D6

Accessibility & contrast

On white

9.96
#3331A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#3331A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3331A3
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3331A3#FFFFFF#000000##FFFFFF
##3331A31.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#003DA1
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #3331a3;
/* rgb */ color: rgb(51, 49, 163);
/* oklch */ color: oklch(39.7% 0.177 275.5);
Tailwind
colors: {
  custom: {
    50: '#7a6abf',
    500: '#3331a3',
    950: '#000000',
  },
}
SCSS
$custom: #3331a3;
$custom-light: #7a6abf;
$custom-dark: #000000;
JSON
{
  "hex": "#3331a3",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 163
  },
  "hsl": {
    "h": 241.053,
    "s": 53.774,
    "l": 41.569
  },
  "oklch": {
    "l": 0.39719,
    "c": 0.17716,
    "h": 275.5
  },
  "luminance": 0.05545
}

Semantic roles & 50–950 ramp

primary
#3331A3
secondary
#BDBF71
accent
#DD4BDB
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #3331A3

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

Preview Lab → · Contrast checker → · Palette generator →

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