#3331B1#3331B1

#3331B1 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.1% C 0.195 H 274.3°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#3331B1
RGBrgb(51, 49, 177)
HSLhsl(241, 57%, 44%)
HSVhsv(241, 72%, 69%)
CMYKcmyk(71.2%, 72.3%, 0%, 30.6%)
CIE-LABlab(29.60, 42.58, -67.21)
CIE-LCHlch(29.60, 79.57, 302.35°)
OKLaboklab(41.11% 0.0147 -0.1943)
OKLCHoklch(41.11% 0.195 274.3)
XYZxyz(10.3967, 6.0738, 42.2109)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331B1 #AFB131
analogous
#316FB1 #3331B1 #7331B1
triadic
#3331B1 #B13331 #31B133
tetradic
#3331B1 #B1316F #AFB131 #31B173
square
#3331B1 #B1316F #AFB131 #31B173
split-complementary
#3331B1 #B17331 #6FB131
monochromatic
#171651 #252481 #3331B1 #5251CF #8280DC

Accessibility & contrast

On white

9.48
#3331B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#3331B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3331B1#FFFFFF#000000##FFFFFF
##3331B11.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB5
Deuteranopia (green-blind)
#0040AF
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #3331b1;
/* rgb */ color: rgb(51, 49, 177);
/* oklch */ color: oklch(41.1% 0.195 274.3);
Tailwind
colors: {
  custom: {
    50: '#7d6aca',
    500: '#3331b1',
    950: '#000000',
  },
}
SCSS
$custom: #3331b1;
$custom-light: #7d6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#3331b1",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 240.938,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41112,
    "c": 0.19491,
    "h": 274.3
  },
  "luminance": 0.06075
}

Semantic roles & 50–950 ramp

primary
#3331B1
secondary
#C4C579
accent
#E048DE
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #3331B1

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

Preview Lab → · Contrast checker → · Palette generator →

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