#312288#312288

#312288 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.160 H 280.7°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#312288
RGBrgb(49, 34, 136)
HSLhsl(249, 60%, 33%)
HSVhsv(249, 75%, 53%)
CMYKcmyk(64%, 75%, 0%, 46.7%)
CIE-LABlab(22.21, 37.45, -54.34)
CIE-LCHlch(22.21, 65.99, 304.57°)
OKLaboklab(34.57% 0.0297 -0.1567)
OKLCHoklch(34.57% 0.16 280.7)
XYZxyz(6.2812, 3.5741, 23.6467)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312288 #798822
analogous
#224688 #312288 #642288
triadic
#312288 #883122 #228831
tetradic
#312288 #882246 #798822 #228864
square
#312288 #882246 #798822 #228864
split-complementary
#312288 #886422 #468822
monochromatic
#0E0A26 #1F1657 #312288 #432EB9 #6451D3

Accessibility & contrast

On white

12.24
#312288 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#312288 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312288
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312288#FFFFFF#000000##FFFFFF
##3122881.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312288;
/* rgb */ color: rgb(49, 34, 136);
/* oklch */ color: oklch(34.6% 0.160 280.7);
Tailwind
colors: {
  custom: {
    50: '#755fac',
    500: '#312288',
    950: '#000000',
  },
}
SCSS
$custom: #312288;
$custom-light: #755fac;
$custom-dark: #000000;
JSON
{
  "hex": "#312288",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 136
  },
  "hsl": {
    "h": 248.824,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34573,
    "c": 0.15953,
    "h": 280.7
  },
  "luminance": 0.03575
}

Semantic roles & 50–950 ramp

primary
#312288
secondary
#A8B74F
accent
#E345CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312288

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

Preview Lab → · Contrast checker → · Palette generator →

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