#312481#312481

#312481 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.148 H 281.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#312481
RGBrgb(49, 36, 129)
HSLhsl(248, 56%, 32%)
HSVhsv(248, 72%, 51%)
CMYKcmyk(62%, 72.1%, 0%, 49.4%)
CIE-LABlab(21.94, 33.97, -50.38)
CIE-LCHlch(21.94, 60.76, 303.99°)
OKLaboklab(34.17% 0.0296 -0.1452)
OKLCHoklch(34.17% 0.148 281.5)
XYZxyz(5.8587, 3.4993, 21.1313)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312481 #748124
analogous
#244681 #312481 #602481
triadic
#312481 #813124 #248131
tetradic
#312481 #812446 #748124 #248160
square
#312481 #812446 #748124 #248160
split-complementary
#312481 #816024 #468124
monochromatic
#0D0921 #1F1751 #312481 #4331B1 #6351CE

Accessibility & contrast

On white

12.35
#312481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#312481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312481
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312481#FFFFFF#000000##FFFFFF
##3124811.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312481;
/* rgb */ color: rgb(49, 36, 129);
/* oklch */ color: oklch(34.2% 0.148 281.5);
Tailwind
colors: {
  custom: {
    50: '#7360a6',
    500: '#312481',
    950: '#000000',
  },
}
SCSS
$custom: #312481;
$custom-light: #7360a6;
$custom-dark: #000000;
JSON
{
  "hex": "#312481",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 129
  },
  "hsl": {
    "h": 248.387,
    "s": 56.364,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34171,
    "c": 0.14814,
    "h": 281.5
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#312481
secondary
#A4B24E
accent
#E048CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #312481

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

Preview Lab → · Contrast checker → · Palette generator →

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