#312381#312381

#312381 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.149 H 281.7°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#312381
RGBrgb(49, 35, 129)
HSLhsl(249, 57%, 32%)
HSVhsv(249, 73%, 51%)
CMYKcmyk(62%, 72.9%, 0%, 49.4%)
CIE-LABlab(21.72, 34.57, -50.73)
CIE-LCHlch(21.72, 61.39, 304.27°)
OKLaboklab(34.02% 0.0304 -0.1462)
OKLCHoklch(34.02% 0.149 281.7)
XYZxyz(5.8289, 3.4396, 21.1214)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312381 #738123
analogous
#234481 #312381 #602381
triadic
#312381 #813123 #238131
tetradic
#312381 #812344 #738123 #238160
square
#312381 #812344 #738123 #238160
split-complementary
#312381 #816023 #448123
monochromatic
#0C0921 #1F1651 #312381 #4330B1 #624FCF

Accessibility & contrast

On white

12.44
#312381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312381
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312381#FFFFFF#000000##FFFFFF
##3123811.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312381;
/* rgb */ color: rgb(49, 35, 129);
/* oklch */ color: oklch(34.0% 0.149 281.7);
Tailwind
colors: {
  custom: {
    50: '#735fa6',
    500: '#312381',
    950: '#000000',
  },
}
SCSS
$custom: #312381;
$custom-light: #735fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#312381",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 129
  },
  "hsl": {
    "h": 248.936,
    "s": 57.317,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34016,
    "c": 0.14932,
    "h": 281.7
  },
  "luminance": 0.0344
}

Semantic roles & 50–950 ramp

primary
#312381
secondary
#A4B34D
accent
#E147CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #312381

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

Preview Lab → · Contrast checker → · Palette generator →

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