#312281#312281

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

Color values

HEX#312281
RGBrgb(49, 34, 129)
HSLhsl(249, 58%, 32%)
HSVhsv(249, 74%, 51%)
CMYKcmyk(62%, 73.6%, 0%, 49.4%)
CIE-LABlab(21.51, 35.16, -51.08)
CIE-LCHlch(21.51, 62.01, 304.54°)
OKLaboklab(33.86% 0.0312 -0.1472)
OKLCHoklch(33.86% 0.15 282)
XYZxyz(5.7999, 3.3816, 21.1117)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312281 #728122
analogous
#224381 #312281 #612281
triadic
#312281 #813122 #228131
tetradic
#312281 #812243 #728122 #228161
square
#312281 #812243 #728122 #228161
split-complementary
#312281 #816122 #438122
monochromatic
#0C0820 #1F1551 #312281 #432FB1 #624DD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312281#FFFFFF#000000##FFFFFF
##3122811.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)
#003784
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312281;
/* rgb */ color: rgb(49, 34, 129);
/* oklch */ color: oklch(33.9% 0.150 282.0);
Tailwind
colors: {
  custom: {
    50: '#735fa7',
    500: '#312281',
    950: '#000000',
  },
}
SCSS
$custom: #312281;
$custom-light: #735fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#312281",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 129
  },
  "hsl": {
    "h": 249.474,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33864,
    "c": 0.15049,
    "h": 282
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#312281
secondary
#A3B34B
accent
#E146C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #312281

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

Preview Lab → · Contrast checker → · Palette generator →

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