#312596#312596

#312596 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.174 H 278.1°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#312596
RGBrgb(49, 37, 150)
HSLhsl(246, 60%, 37%)
HSVhsv(246, 75%, 59%)
CMYKcmyk(67.3%, 75.3%, 0%, 41.2%)
CIE-LABlab(24.25, 40.31, -59.67)
CIE-LCHlch(24.25, 72.01, 304.04°)
OKLaboklab(36.45% 0.0245 -0.1723)
OKLCHoklch(36.45% 0.174 278.1)
XYZxyz(7.4314, 4.1775, 29.2630)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312596 #8A9625
analogous
#255296 #312596 #6A2596
triadic
#312596 #963125 #259631
tetradic
#312596 #962552 #8A9625 #25966A
square
#312596 #962552 #8A9625 #25966A
split-complementary
#312596 #966A25 #529625
monochromatic
#110D34 #211965 #312596 #4131C7 #6B5ED7

Accessibility & contrast

On white

11.44
#312596 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#312596 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312596
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312596#FFFFFF#000000##FFFFFF
##3125961.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312596;
/* rgb */ color: rgb(49, 37, 150);
/* oklch */ color: oklch(36.4% 0.174 278.1);
Tailwind
colors: {
  custom: {
    50: '#7862b6',
    500: '#312596',
    950: '#000000',
  },
}
SCSS
$custom: #312596;
$custom-light: #7862b6;
$custom-dark: #000000;
JSON
{
  "hex": "#312596",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 150
  },
  "hsl": {
    "h": 246.372,
    "s": 60.428,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36449,
    "c": 0.17406,
    "h": 278.1
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#312596
secondary
#B2BC5B
accent
#E444D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312596

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

Preview Lab → · Contrast checker → · Palette generator →

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