#312183#312183

#312183 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.154 H 281.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#312183
RGBrgb(49, 33, 131)
HSLhsl(250, 60%, 32%)
HSVhsv(250, 75%, 51%)
CMYKcmyk(62.6%, 74.8%, 0%, 48.6%)
CIE-LABlab(21.50, 36.39, -52.36)
CIE-LCHlch(21.50, 63.77, 304.80°)
OKLaboklab(33.92% 0.0316 -0.1509)
OKLCHoklch(33.92% 0.154 281.8)
XYZxyz(5.9059, 3.3790, 21.8093)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312183 #738321
analogous
#214283 #312183 #622183
triadic
#312183 #833121 #218331
tetradic
#312183 #832142 #738321 #218362
square
#312183 #832142 #738321 #218362
split-complementary
#312183 #836221 #428321
monochromatic
#0C0821 #1F1552 #312183 #432DB4 #624CD2

Accessibility & contrast

On white

12.53
#312183 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#312183 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312183
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312183#FFFFFF#000000##FFFFFF
##3121831.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003786
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312183;
/* rgb */ color: rgb(49, 33, 131);
/* oklch */ color: oklch(33.9% 0.154 281.8);
Tailwind
colors: {
  custom: {
    50: '#745ea8',
    500: '#312183',
    950: '#000000',
  },
}
SCSS
$custom: #312183;
$custom-light: #745ea8;
$custom-dark: #000000;
JSON
{
  "hex": "#312183",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 131
  },
  "hsl": {
    "h": 249.796,
    "s": 59.756,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33917,
    "c": 0.15421,
    "h": 281.8
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#312183
secondary
#A4B54B
accent
#E345C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312183

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

Preview Lab → · Contrast checker → · Palette generator →

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