#312475#312475

#312475 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.132 H 283.8°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#312475
RGBrgb(49, 36, 117)
HSLhsl(250, 53%, 30%)
HSVhsv(250, 69%, 46%)
CMYKcmyk(58.1%, 69.2%, 0%, 54.1%)
CIE-LABlab(20.82, 29.96, -44.57)
CIE-LCHlch(20.82, 53.71, 303.91°)
OKLaboklab(33.02% 0.0315 -0.1281)
OKLCHoklch(33.02% 0.132 283.8)
XYZxyz(5.1074, 3.1988, 17.1745)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312475 #687524
analogous
#243F75 #312475 #5A2475
triadic
#312475 #753124 #247531
tetradic
#312475 #75243F #687524 #24755A
square
#312475 #75243F #687524 #24755A
split-complementary
#312475 #755A24 #3F7524
monochromatic
#0A0717 #1D1646 #312475 #4532A4 #604CC8

Accessibility & contrast

On white

12.81
#312475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312475
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312475#FFFFFF#000000##FFFFFF
##3124751.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#113949
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #312475;
/* rgb */ color: rgb(49, 36, 117);
/* oklch */ color: oklch(33.0% 0.132 283.8);
Tailwind
colors: {
  custom: {
    50: '#71609e',
    500: '#312475',
    950: '#000000',
  },
}
SCSS
$custom: #312475;
$custom-light: #71609e;
$custom-dark: #000000;
JSON
{
  "hex": "#312475",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 117
  },
  "hsl": {
    "h": 249.63,
    "s": 52.941,
    "l": 30
  },
  "oklch": {
    "l": 0.33022,
    "c": 0.13196,
    "h": 283.8
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#312475
secondary
#99A84D
accent
#DC4BC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #312475

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

Preview Lab → · Contrast checker → · Palette generator →

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