#312597#312597

#312597 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.6% C 0.175 H 278.0°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#312597
RGBrgb(49, 37, 151)
HSLhsl(246, 61%, 37%)
HSVhsv(246, 75%, 59%)
CMYKcmyk(67.5%, 75.5%, 0%, 40.8%)
CIE-LABlab(24.35, 40.64, -60.12)
CIE-LCHlch(24.35, 72.56, 304.06°)
OKLaboklab(36.55% 0.0243 -0.1736)
OKLCHoklch(36.55% 0.175 278)
XYZxyz(7.5123, 4.2098, 29.6888)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312597 #8B9725
analogous
#255297 #312597 #6A2597
triadic
#312597 #973125 #259731
tetradic
#312597 #972552 #8B9725 #25976A
square
#312597 #972552 #8B9725 #25976A
split-complementary
#312597 #976A25 #529725
monochromatic
#110D35 #211966 #312597 #4131C8 #6B5FD8

Accessibility & contrast

On white

11.40
#312597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312597
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312597#FFFFFF#000000##FFFFFF
##3125971.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00465C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312597;
/* rgb */ color: rgb(49, 37, 151);
/* oklch */ color: oklch(36.6% 0.175 278.0);
Tailwind
colors: {
  custom: {
    50: '#7862b7',
    500: '#312597',
    950: '#000000',
  },
}
SCSS
$custom: #312597;
$custom-light: #7862b7;
$custom-dark: #000000;
JSON
{
  "hex": "#312597",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 246.316,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36553,
    "c": 0.17532,
    "h": 278
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312597

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

Preview Lab → · Contrast checker → · Palette generator →

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