#312474#312474

#312474 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.9% C 0.131 H 284.0°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#312474
RGBrgb(49, 36, 116)
HSLhsl(250, 53%, 30%)
HSVhsv(250, 69%, 45%)
CMYKcmyk(57.8%, 69%, 0%, 54.5%)
CIE-LABlab(20.73, 29.62, -44.08)
CIE-LCHlch(20.73, 53.11, 303.90°)
OKLaboklab(32.93% 0.0317 -0.1267)
OKLCHoklch(32.93% 0.131 284)
XYZxyz(5.0489, 3.1754, 16.8665)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312474 #677424
analogous
#243F74 #312474 #592474
triadic
#312474 #743124 #247431
tetradic
#312474 #74243F #677424 #247459
square
#312474 #74243F #677424 #247459
split-complementary
#312474 #745924 #3F7424
monochromatic
#0A0717 #1D1645 #312474 #4532A3 #5F4BC7

Accessibility & contrast

On white

12.84
#312474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#312474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312474
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312474#FFFFFF#000000##FFFFFF
##3124741.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#123848
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #312474;
/* rgb */ color: rgb(49, 36, 116);
/* oklch */ color: oklch(32.9% 0.131 284.0);
Tailwind
colors: {
  custom: {
    50: '#71609d',
    500: '#312474',
    950: '#000000',
  },
}
SCSS
$custom: #312474;
$custom-light: #71609d;
$custom-dark: #000000;
JSON
{
  "hex": "#312474",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 116
  },
  "hsl": {
    "h": 249.75,
    "s": 52.632,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32929,
    "c": 0.13059,
    "h": 284
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#312474
secondary
#98A74D
accent
#DC4CC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #312474

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

Preview Lab → · Contrast checker → · Palette generator →

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