#3331AC#3331AC

#3331AC is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.6% C 0.189 H 274.7°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#3331AC
RGBrgb(51, 49, 172)
HSLhsl(241, 56%, 43%)
HSVhsv(241, 72%, 67%)
CMYKcmyk(70.3%, 71.5%, 0%, 32.5%)
CIE-LABlab(29.10, 40.90, -65.04)
CIE-LCHlch(29.10, 76.83, 302.17°)
OKLaboklab(40.61% 0.0155 -0.188)
OKLCHoklch(40.61% 0.189 274.7)
XYZxyz(9.9075, 5.8781, 39.6342)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331AC #AAAC31
analogous
#316CAC #3331AC #7031AC
triadic
#3331AC #AC3331 #31AC33
tetradic
#3331AC #AC316C #AAAC31 #31AC70
square
#3331AC #AC316C #AAAC31 #31AC70
split-complementary
#3331AC #AC7031 #6CAC31
monochromatic
#17164D #25237C #3331AC #504ECC #7F7DDA

Accessibility & contrast

On white

9.65
#3331AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#3331AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3331AC#FFFFFF#000000##FFFFFF
##3331AC1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB0
Deuteranopia (green-blind)
#003FAA
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #3331ac;
/* rgb */ color: rgb(51, 49, 172);
/* oklch */ color: oklch(40.6% 0.189 274.7);
Tailwind
colors: {
  custom: {
    50: '#7c6ac6',
    500: '#3331ac',
    950: '#000000',
  },
}
SCSS
$custom: #3331ac;
$custom-light: #7c6ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#3331ac",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 240.976,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40609,
    "c": 0.18864,
    "h": 274.7
  },
  "luminance": 0.05879
}

Semantic roles & 50–950 ramp

primary
#3331AC
secondary
#C2C376
accent
#DF49DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3331AC

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

Preview Lab → · Contrast checker → · Palette generator →

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