#312592#312592

#312592 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.169 H 278.6°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#312592
RGBrgb(49, 37, 146)
HSLhsl(247, 60%, 36%)
HSVhsv(247, 75%, 57%)
CMYKcmyk(66.4%, 74.7%, 0%, 42.7%)
CIE-LABlab(23.84, 39.00, -57.88)
CIE-LCHlch(23.84, 69.80, 303.98°)
OKLaboklab(36.03% 0.0254 -0.1671)
OKLCHoklch(36.03% 0.169 278.6)
XYZxyz(7.1148, 4.0508, 27.5955)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312592 #869225
analogous
#254F92 #312592 #672592
triadic
#312592 #923125 #259231
tetradic
#312592 #92254F #869225 #259267
square
#312592 #92254F #869225 #259267
split-complementary
#312592 #926725 #4F9225
monochromatic
#100C30 #211961 #312592 #4131C3 #695CD6

Accessibility & contrast

On white

11.60
#312592 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#312592 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312592
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312592#FFFFFF#000000##FFFFFF
##3125921.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003490
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312592;
/* rgb */ color: rgb(49, 37, 146);
/* oklch */ color: oklch(36.0% 0.169 278.6);
Tailwind
colors: {
  custom: {
    50: '#7761b3',
    500: '#312592',
    950: '#000000',
  },
}
SCSS
$custom: #312592;
$custom-light: #7761b3;
$custom-dark: #000000;
JSON
{
  "hex": "#312592",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 146
  },
  "hsl": {
    "h": 246.606,
    "s": 59.563,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36034,
    "c": 0.16902,
    "h": 278.6
  },
  "luminance": 0.04051
}

Semantic roles & 50–950 ramp

primary
#312592
secondary
#B0BA58
accent
#E345D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312592

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

Preview Lab → · Contrast checker → · Palette generator →

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