#311BA6#311BA6

#311BA6 is a dark, highly saturated blue. Relative luminance 0.042; OKLCH L 37.0% C 0.202 H 277.1°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#311BA6
RGBrgb(49, 27, 166)
HSLhsl(249, 72%, 38%)
HSVhsv(249, 84%, 65%)
CMYKcmyk(70.5%, 83.7%, 0%, 34.9%)
CIE-LABlab(24.29, 50.29, -69.38)
CIE-LCHlch(24.29, 85.69, 305.93°)
OKLaboklab(37% 0.0251 -0.2005)
OKLCHoklch(37% 0.202 277.1)
XYZxyz(8.5393, 4.1892, 36.4276)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311BA6 #90A61B
analogous
#1B4BA6 #311BA6 #761BA6
triadic
#311BA6 #A6311B #1BA631
tetradic
#311BA6 #A61B4B #90A61B #1BA676
square
#311BA6 #A61B4B #90A61B #1BA676
split-complementary
#311BA6 #A6761B #4BA61B
monochromatic
#120A3D #211271 #311BA6 #4124DB #6E58E4

Accessibility & contrast

On white

11.43
#311BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#311BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311BA6
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311BA6#FFFFFF#000000##FFFFFF
##311BA61.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FAA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #311ba6;
/* rgb */ color: rgb(49, 27, 166);
/* oklch */ color: oklch(37.0% 0.202 277.1);
Tailwind
colors: {
  custom: {
    50: '#7c5dc2',
    500: '#311ba6',
    950: '#000000',
  },
}
SCSS
$custom: #311ba6;
$custom-light: #7c5dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#311ba6",
  "rgb": {
    "r": 49,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 249.496,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36997,
    "c": 0.20203,
    "h": 277.1
  },
  "luminance": 0.0419
}

Semantic roles & 50–950 ramp

primary
#311BA6
secondary
#B5C756
accent
#EF39D2
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0413
muted
#7C7982

Preview Lab

Preview with #311BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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