#311EAD#311EAD

#311EAD is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.1% C 0.208 H 276.0°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#311EAD
RGBrgb(49, 30, 173)
HSLhsl(248, 70%, 40%)
HSVhsv(248, 83%, 68%)
CMYKcmyk(71.7%, 82.7%, 0%, 32.2%)
CIE-LABlab(25.56, 51.04, -71.50)
CIE-LCHlch(25.56, 87.85, 305.52°)
OKLaboklab(38.11% 0.0219 -0.2067)
OKLCHoklch(38.11% 0.208 276)
XYZxyz(9.2713, 4.5978, 39.9259)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311EAD #9AAD1E
analogous
#1E53AD #311EAD #791EAD
triadic
#311EAD #AD311E #1EAD31
tetradic
#311EAD #AD1E53 #9AAD1E #1EAD79
square
#311EAD #AD1E53 #9AAD1E #1EAD79
split-complementary
#311EAD #AD791E #53AD1E
monochromatic
#130C45 #221579 #311EAD #452EDB #7362E4

Accessibility & contrast

On white

10.94
#311EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#311EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311EAD
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311EAD#FFFFFF#000000##FFFFFF
##311EAD1.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B1
Deuteranopia (green-blind)
#0036AB
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #311ead;
/* rgb */ color: rgb(49, 30, 173);
/* oklch */ color: oklch(38.1% 0.208 276.0);
Tailwind
colors: {
  custom: {
    50: '#7d5fc7',
    500: '#311ead',
    950: '#000000',
  },
}
SCSS
$custom: #311ead;
$custom-light: #7d5fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#311ead",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 173
  },
  "hsl": {
    "h": 247.972,
    "s": 70.443,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38109,
    "c": 0.20782,
    "h": 276
  },
  "luminance": 0.04599
}

Semantic roles & 50–950 ramp

primary
#311EAD
secondary
#BAC85E
accent
#ED3BD5
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #311EAD

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

Preview Lab → · Contrast checker → · Palette generator →

#311EAD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva