#312598#312598

#312598 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.177 H 277.8°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#312598
RGBrgb(49, 37, 152)
HSLhsl(246, 61%, 37%)
HSVhsv(246, 76%, 60%)
CMYKcmyk(67.8%, 75.7%, 0%, 40.4%)
CIE-LABlab(24.46, 40.96, -60.56)
CIE-LCHlch(24.46, 73.11, 304.08°)
OKLaboklab(36.66% 0.024 -0.1749)
OKLCHoklch(36.66% 0.177 277.8)
XYZxyz(7.5939, 4.2425, 30.1184)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312598 #8C9825
analogous
#255398 #312598 #6B2598
triadic
#312598 #983125 #259831
tetradic
#312598 #982553 #8C9825 #25986B
square
#312598 #982553 #8C9825 #25986B
split-complementary
#312598 #986B25 #539825
monochromatic
#110D36 #211967 #312598 #4131C9 #6C5FD8

Accessibility & contrast

On white

11.36
#312598 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#312598 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312598
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312598#FFFFFF#000000##FFFFFF
##3125981.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312598;
/* rgb */ color: rgb(49, 37, 152);
/* oklch */ color: oklch(36.7% 0.177 277.8);
Tailwind
colors: {
  custom: {
    50: '#7862b7',
    500: '#312598',
    950: '#000000',
  },
}
SCSS
$custom: #312598;
$custom-light: #7862b7;
$custom-dark: #000000;
JSON
{
  "hex": "#312598",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 152
  },
  "hsl": {
    "h": 246.261,
    "s": 60.847,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36658,
    "c": 0.17656,
    "h": 277.8
  },
  "luminance": 0.04243
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312598

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

Preview Lab → · Contrast checker → · Palette generator →

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