#312088#312088

#312088 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.3% C 0.162 H 281.1°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#312088
RGBrgb(49, 32, 136)
HSLhsl(250, 62%, 33%)
HSVhsv(250, 76%, 53%)
CMYKcmyk(64%, 76.5%, 0%, 46.7%)
CIE-LABlab(21.81, 38.58, -55.00)
CIE-LCHlch(21.81, 67.18, 305.05°)
OKLaboklab(34.29% 0.0311 -0.1587)
OKLCHoklch(34.29% 0.162 281.1)
XYZxyz(6.2257, 3.4631, 23.6282)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312088 #778820
analogous
#204388 #312088 #652088
triadic
#312088 #883120 #208831
tetradic
#312088 #882043 #778820 #208865
square
#312088 #882043 #778820 #208865
split-complementary
#312088 #886520 #438820
monochromatic
#0D0925 #1F1456 #312088 #432CBA #634DD5

Accessibility & contrast

On white

12.41
#312088 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#312088 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312088
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312088#FFFFFF#000000##FFFFFF
##3120881.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312088;
/* rgb */ color: rgb(49, 32, 136);
/* oklch */ color: oklch(34.3% 0.162 281.1);
Tailwind
colors: {
  custom: {
    50: '#755eac',
    500: '#312088',
    950: '#000000',
  },
}
SCSS
$custom: #312088;
$custom-light: #755eac;
$custom-dark: #000000;
JSON
{
  "hex": "#312088",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 136
  },
  "hsl": {
    "h": 249.808,
    "s": 61.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3429,
    "c": 0.16167,
    "h": 281.1
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#312088
secondary
#A6B84C
accent
#E543CA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312088

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

Preview Lab → · Contrast checker → · Palette generator →

#312088 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva