#312599#312599

#312599 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.178 H 277.7°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#312599
RGBrgb(49, 37, 153)
HSLhsl(246, 61%, 37%)
HSVhsv(246, 76%, 60%)
CMYKcmyk(68%, 75.8%, 0%, 40%)
CIE-LABlab(24.56, 41.29, -61.00)
CIE-LCHlch(24.56, 73.66, 304.09°)
OKLaboklab(36.76% 0.0238 -0.1762)
OKLCHoklch(36.76% 0.178 277.7)
XYZxyz(7.6761, 4.2754, 30.5515)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312599 #8D9925
analogous
#255399 #312599 #6B2599
triadic
#312599 #993125 #259931
tetradic
#312599 #992553 #8D9925 #25996B
square
#312599 #992553 #8D9925 #25996B
split-complementary
#312599 #996B25 #539925
monochromatic
#110D36 #211968 #312599 #4131CA #6C60D9

Accessibility & contrast

On white

11.32
#312599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#312599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312599
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312599#FFFFFF#000000##FFFFFF
##3125991.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00465D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312599;
/* rgb */ color: rgb(49, 37, 153);
/* oklch */ color: oklch(36.8% 0.178 277.7);
Tailwind
colors: {
  custom: {
    50: '#7862b8',
    500: '#312599',
    950: '#000000',
  },
}
SCSS
$custom: #312599;
$custom-light: #7862b8;
$custom-dark: #000000;
JSON
{
  "hex": "#312599",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 153
  },
  "hsl": {
    "h": 246.207,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36763,
    "c": 0.17781,
    "h": 277.7
  },
  "luminance": 0.04276
}

Semantic roles & 50–950 ramp

primary
#312599
secondary
#B4BE5C
accent
#E444D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #312599

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

Preview Lab → · Contrast checker → · Palette generator →

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