#3331AB#3331AB

#3331AB is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.187 H 274.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#3331AB
RGBrgb(51, 49, 171)
HSLhsl(241, 55%, 43%)
HSVhsv(241, 71%, 67%)
CMYKcmyk(70.2%, 71.3%, 0%, 32.9%)
CIE-LABlab(29.00, 40.57, -64.60)
CIE-LCHlch(29.00, 76.28, 302.13°)
OKLaboklab(40.51% 0.0157 -0.1867)
OKLCHoklch(40.51% 0.187 274.8)
XYZxyz(9.8118, 5.8398, 39.1303)
Luminance0.0584 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331AB #A9AB31
analogous
#316CAB #3331AB #7031AB
triadic
#3331AB #AB3331 #31AB33
tetradic
#3331AB #AB316C #A9AB31 #31AB70
square
#3331AB #AB316C #A9AB31 #31AB70
split-complementary
#3331AB #AB7031 #6CAB31
monochromatic
#17164C #25237B #3331AB #4F4DCC #7E7DDA

Accessibility & contrast

On white

9.69
#3331AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#3331AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3331AB#FFFFFF#000000##FFFFFF
##3331AB1.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAF
Deuteranopia (green-blind)
#003FA9
Tritanopia (blue-blind)
#00536A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #3331ab;
/* rgb */ color: rgb(51, 49, 171);
/* oklch */ color: oklch(40.5% 0.187 274.8);
Tailwind
colors: {
  custom: {
    50: '#7c6ac5',
    500: '#3331ab',
    950: '#000000',
  },
}
SCSS
$custom: #3331ab;
$custom-light: #7c6ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#3331ab",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 240.984,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40509,
    "c": 0.18738,
    "h": 274.8
  },
  "luminance": 0.05841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3331AB

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

Preview Lab → · Contrast checker → · Palette generator →

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