#3331BA#3331BA

#3331BA is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.0% C 0.206 H 273.7°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#3331BA
RGBrgb(51, 49, 186)
HSLhsl(241, 58%, 46%)
HSVhsv(241, 74%, 73%)
CMYKcmyk(72.6%, 73.7%, 0%, 27.1%)
CIE-LABlab(30.51, 45.57, -71.06)
CIE-LCHlch(30.51, 84.42, 302.67°)
OKLaboklab(42.03% 0.0132 -0.2056)
OKLCHoklch(42.03% 0.206 273.7)
XYZxyz(11.3235, 6.4445, 47.0920)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3331BA #B8BA31
analogous
#3173BA #3331BA #7731BA
triadic
#3331BA #BA3331 #31BA33
tetradic
#3331BA #BA3173 #B8BA31 #31BA77
square
#3331BA #BA3173 #B8BA31 #31BA77
split-complementary
#3331BA #BA7731 #73BA31
monochromatic
#181759 #26248A #3331BA #5856D2 #8886DF

Accessibility & contrast

On white

9.17
#3331BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#3331BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##3331BA#FFFFFF#000000##FFFFFF
##3331BA1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EBE
Deuteranopia (green-blind)
#0041B8
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #3331ba;
/* rgb */ color: rgb(51, 49, 186);
/* oklch */ color: oklch(42.0% 0.206 273.7);
Tailwind
colors: {
  custom: {
    50: '#7f6bd0',
    500: '#3331ba',
    950: '#000000',
  },
}
SCSS
$custom: #3331ba;
$custom-light: #7f6bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#3331ba",
  "rgb": {
    "r": 51,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 240.876,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42032,
    "c": 0.20599,
    "h": 273.7
  },
  "luminance": 0.06446
}

Semantic roles & 50–950 ramp

primary
#3331BA
secondary
#C8C97E
accent
#E246DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0714
muted
#7D7A82

Preview Lab

Preview with #3331BA

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

Preview Lab → · Contrast checker → · Palette generator →

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