#311AB3#311AB3

#311AB3 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.4% C 0.217 H 275.6°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#311AB3
RGBrgb(49, 26, 179)
HSLhsl(249, 75%, 40%)
HSVhsv(249, 85%, 70%)
CMYKcmyk(72.6%, 85.5%, 0%, 29.8%)
CIE-LABlab(25.70, 54.48, -74.86)
CIE-LCHlch(25.70, 92.59, 306.04°)
OKLaboklab(38.41% 0.0214 -0.2163)
OKLCHoklch(38.41% 0.217 275.6)
XYZxyz(9.7700, 4.6455, 43.0209)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311AB3 #9CB31A
analogous
#1A4FB3 #311AB3 #7E1AB3
triadic
#311AB3 #B3311A #1AB331
tetradic
#311AB3 #B31A4F #9CB31A #1AB37E
square
#311AB3 #B31A4F #9CB31A #1AB37E
split-complementary
#311AB3 #B37E1A #4FB31A
monochromatic
#140A48 #22127E #311AB3 #452AE0 #7460E8

Accessibility & contrast

On white

10.89
#311AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#311AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311AB3
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311AB3#FFFFFF#000000##FFFFFF
##311AB31.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311ab3;
/* rgb */ color: rgb(49, 26, 179);
/* oklch */ color: oklch(38.4% 0.217 275.6);
Tailwind
colors: {
  custom: {
    50: '#7f5ecb',
    500: '#311ab3',
    950: '#000000',
  },
}
SCSS
$custom: #311ab3;
$custom-light: #7f5ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#311ab3",
  "rgb": {
    "r": 49,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 249.02,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38413,
    "c": 0.21738,
    "h": 275.6
  },
  "luminance": 0.04646
}

Semantic roles & 50–950 ramp

primary
#311AB3
secondary
#BBCC5D
accent
#F137D5
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #311AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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