#331AB3#331AB3

#331AB3 is a dark, highly saturated blue. Relative luminance 0.047; OKLCH L 38.6% C 0.217 H 276.4°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#331AB3
RGBrgb(51, 26, 179)
HSLhsl(250, 75%, 40%)
HSVhsv(250, 85%, 70%)
CMYKcmyk(71.5%, 85.5%, 0%, 29.8%)
CIE-LABlab(25.85, 54.61, -74.61)
CIE-LCHlch(25.85, 92.46, 306.20°)
OKLaboklab(38.56% 0.0242 -0.2155)
OKLCHoklch(38.56% 0.217 276.4)
XYZxyz(9.8687, 4.6963, 43.0255)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#331AB3 #9AB31A
analogous
#1A4DB3 #331AB3 #7F1AB3
triadic
#331AB3 #B3331A #1AB333
tetradic
#331AB3 #B31A4D #9AB31A #1AB37F
square
#331AB3 #B31A4D #9AB31A #1AB37F
split-complementary
#331AB3 #B37F1A #4DB31A
monochromatic
#150A48 #24127E #331AB3 #482AE0 #7660E8

Accessibility & contrast

On white

10.83
#331AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#331AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #331AB3
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##331AB3#FFFFFF#000000##FFFFFF
##331AB31.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B7
Deuteranopia (green-blind)
#0037B0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #331ab3;
/* rgb */ color: rgb(51, 26, 179);
/* oklch */ color: oklch(38.6% 0.217 276.4);
Tailwind
colors: {
  custom: {
    50: '#805ecb',
    500: '#331ab3',
    950: '#000000',
  },
}
SCSS
$custom: #331ab3;
$custom-light: #805ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#331ab3",
  "rgb": {
    "r": 51,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 249.804,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38556,
    "c": 0.21691,
    "h": 276.4
  },
  "luminance": 0.04697
}

Semantic roles & 50–950 ramp

primary
#331AB3
secondary
#BACC5D
accent
#F137D3
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #331AB3

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

Preview Lab → · Contrast checker → · Palette generator →

#331AB3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva