#312595#312595

#312595 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.173 H 278.2°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#312595
RGBrgb(49, 37, 149)
HSLhsl(246, 60%, 36%)
HSVhsv(246, 75%, 58%)
CMYKcmyk(67.1%, 75.2%, 0%, 41.6%)
CIE-LABlab(24.15, 39.99, -59.23)
CIE-LCHlch(24.15, 71.46, 304.03°)
OKLaboklab(36.35% 0.0247 -0.171)
OKLCHoklch(36.35% 0.173 278.2)
XYZxyz(7.3513, 4.1454, 28.8407)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312595 #899525
analogous
#255195 #312595 #692595
triadic
#312595 #953125 #259531
tetradic
#312595 #952551 #899525 #259569
square
#312595 #952551 #899525 #259569
split-complementary
#312595 #956925 #519525
monochromatic
#110D33 #211964 #312595 #4131C6 #6B5ED7

Accessibility & contrast

On white

11.48
#312595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#312595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312595
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312595#FFFFFF#000000##FFFFFF
##3125951.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E98
Deuteranopia (green-blind)
#003593
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312595;
/* rgb */ color: rgb(49, 37, 149);
/* oklch */ color: oklch(36.3% 0.173 278.2);
Tailwind
colors: {
  custom: {
    50: '#7762b5',
    500: '#312595',
    950: '#000000',
  },
}
SCSS
$custom: #312595;
$custom-light: #7762b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312595",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 246.429,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36345,
    "c": 0.17281,
    "h": 278.2
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#312595
secondary
#B1BC5A
accent
#E344D2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312595

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

Preview Lab → · Contrast checker → · Palette generator →

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