#312593#312593

#312593 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.170 H 278.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#312593
RGBrgb(49, 37, 147)
HSLhsl(247, 60%, 36%)
HSVhsv(247, 75%, 58%)
CMYKcmyk(66.7%, 74.8%, 0%, 42.4%)
CIE-LABlab(23.94, 39.33, -58.33)
CIE-LCHlch(23.94, 70.35, 303.99°)
OKLaboklab(36.14% 0.0252 -0.1684)
OKLCHoklch(36.14% 0.17 278.5)
XYZxyz(7.1930, 4.0821, 28.0070)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312593 #879325
analogous
#255093 #312593 #682593
triadic
#312593 #933125 #259331
tetradic
#312593 #932550 #879325 #259368
square
#312593 #932550 #879325 #259368
split-complementary
#312593 #936825 #509325
monochromatic
#100C31 #211962 #312593 #4131C4 #6A5CD6

Accessibility & contrast

On white

11.56
#312593 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#312593 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312593
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312593#FFFFFF#000000##FFFFFF
##3125931.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D96
Deuteranopia (green-blind)
#003491
Tritanopia (blue-blind)
#00445A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312593;
/* rgb */ color: rgb(49, 37, 147);
/* oklch */ color: oklch(36.1% 0.170 278.5);
Tailwind
colors: {
  custom: {
    50: '#7761b4',
    500: '#312593',
    950: '#000000',
  },
}
SCSS
$custom: #312593;
$custom-light: #7761b4;
$custom-dark: #000000;
JSON
{
  "hex": "#312593",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 147
  },
  "hsl": {
    "h": 246.545,
    "s": 59.783,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36137,
    "c": 0.17029,
    "h": 278.5
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#312593
secondary
#B0BB59
accent
#E345D2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312593

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

Preview Lab → · Contrast checker → · Palette generator →

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