#3331AE#3331AE

#3331AE is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.8% C 0.191 H 274.6°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#3331AE
RGBrgb(51, 49, 174)
HSLhsl(241, 56%, 44%)
HSVhsv(241, 72%, 68%)
CMYKcmyk(70.7%, 71.8%, 0%, 31.8%)
CIE-LABlab(29.30, 41.58, -65.91)
CIE-LCHlch(29.30, 77.93, 302.24°)
OKLaboklab(40.81% 0.0152 -0.1905)
OKLCHoklch(40.81% 0.191 274.6)
XYZxyz(10.1010, 5.9555, 40.6534)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331AE #ACAE31
analogous
#316DAE #3331AE #7131AE
triadic
#3331AE #AE3331 #31AE33
tetradic
#3331AE #AE316D #ACAE31 #31AE71
square
#3331AE #AE316D #ACAE31 #31AE71
split-complementary
#3331AE #AE7131 #6DAE31
monochromatic
#17164E #25247E #3331AE #514FCD #807FDB

Accessibility & contrast

On white

9.58
#3331AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#3331AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3331AE#FFFFFF#000000##FFFFFF
##3331AE1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#003FAC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3331ae;
/* rgb */ color: rgb(51, 49, 174);
/* oklch */ color: oklch(40.8% 0.191 274.6);
Tailwind
colors: {
  custom: {
    50: '#7d6ac7',
    500: '#3331ae',
    950: '#000000',
  },
}
SCSS
$custom: #3331ae;
$custom-light: #7d6ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#3331ae",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 240.96,
    "s": 56.054,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40809,
    "c": 0.19116,
    "h": 274.6
  },
  "luminance": 0.05956
}

Semantic roles & 50–950 ramp

primary
#3331AE
secondary
#C2C477
accent
#DF48DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3331AE

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

Preview Lab → · Contrast checker → · Palette generator →

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