#312497#312497

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

Color values

HEX#312497
RGBrgb(49, 36, 151)
HSLhsl(247, 61%, 37%)
HSVhsv(247, 76%, 59%)
CMYKcmyk(67.5%, 76.2%, 0%, 40.8%)
CIE-LABlab(24.16, 41.20, -60.44)
CIE-LCHlch(24.16, 73.14, 304.28°)
OKLaboklab(36.41% 0.0249 -0.1746)
OKLCHoklch(36.41% 0.176 278.1)
XYZxyz(7.4816, 4.1485, 29.6786)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312497 #8A9724
analogous
#245197 #312497 #6B2497
triadic
#312497 #973124 #249731
tetradic
#312497 #972451 #8A9724 #24976B
square
#312497 #972451 #8A9724 #24976B
split-complementary
#312497 #976B24 #519724
monochromatic
#110C34 #211866 #312497 #4130C8 #6B5DD8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##312497#FFFFFF#000000##FFFFFF
##3124971.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)
#003E9A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312497;
/* rgb */ color: rgb(49, 36, 151);
/* oklch */ color: oklch(36.4% 0.176 278.1);
Tailwind
colors: {
  custom: {
    50: '#7861b7',
    500: '#312497',
    950: '#000000',
  },
}
SCSS
$custom: #312497;
$custom-light: #7861b7;
$custom-dark: #000000;
JSON
{
  "hex": "#312497",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 246.783,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36414,
    "c": 0.17633,
    "h": 278.1
  },
  "luminance": 0.04149
}

Semantic roles & 50–950 ramp

primary
#312497
secondary
#B2BD5A
accent
#E543D2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312497

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

Preview Lab → · Contrast checker → · Palette generator →

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