#3331AA#3331AA

#3331AA is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.4% C 0.186 H 274.9°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#3331AA
RGBrgb(51, 49, 170)
HSLhsl(241, 55%, 43%)
HSVhsv(241, 71%, 67%)
CMYKcmyk(70%, 71.2%, 0%, 33.3%)
CIE-LABlab(28.91, 40.23, -64.16)
CIE-LCHlch(28.91, 75.73, 302.09°)
OKLaboklab(40.41% 0.0158 -0.1854)
OKLCHoklch(40.41% 0.186 274.9)
XYZxyz(9.7169, 5.8018, 38.6302)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331AA #A8AA31
analogous
#316BAA #3331AA #7031AA
triadic
#3331AA #AA3331 #31AA33
tetradic
#3331AA #AA316B #A8AA31 #31AA70
square
#3331AA #AA316B #A8AA31 #31AA70
split-complementary
#3331AA #AA7031 #6BAA31
monochromatic
#16164B #25237A #3331AA #4F4DCC #7E7CD9

Accessibility & contrast

On white

9.72
#3331AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#3331AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3331AA#FFFFFF#000000##FFFFFF
##3331AA1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#003FA8
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3331aa;
/* rgb */ color: rgb(51, 49, 170);
/* oklch */ color: oklch(40.4% 0.186 274.9);
Tailwind
colors: {
  custom: {
    50: '#7c6ac4',
    500: '#3331aa',
    950: '#000000',
  },
}
SCSS
$custom: #3331aa;
$custom-light: #7c6ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#3331aa",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 240.992,
    "s": 55.251,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40409,
    "c": 0.18612,
    "h": 274.9
  },
  "luminance": 0.05803
}

Semantic roles & 50–950 ramp

primary
#3331AA
secondary
#C1C275
accent
#DF49DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3331AA

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

Preview Lab → · Contrast checker → · Palette generator →

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