#312975#312975

#312975 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.125 H 282.2°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#312975
RGBrgb(49, 41, 117)
HSLhsl(246, 48%, 31%)
HSVhsv(246, 65%, 46%)
CMYKcmyk(58.1%, 65%, 0%, 54.1%)
CIE-LABlab(22.03, 26.75, -42.61)
CIE-LCHlch(22.03, 50.31, 302.11°)
OKLaboklab(33.9% 0.0264 -0.1224)
OKLCHoklch(33.9% 0.125 282.2)
XYZxyz(5.2695, 3.5229, 17.2285)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312975 #6D7529
analogous
#294775 #312975 #572975
triadic
#312975 #753129 #297531
tetradic
#312975 #752947 #6D7529 #297557
square
#312975 #752947 #6D7529 #297557
split-complementary
#312975 #755729 #477529
monochromatic
#0B091A #1E1948 #312975 #4439A2 #6155C3

Accessibility & contrast

On white

12.32
#312975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#312975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312975
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312975#FFFFFF#000000##FFFFFF
##3129751.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003777
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#103C4B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312975;
/* rgb */ color: rgb(49, 41, 117);
/* oklch */ color: oklch(33.9% 0.125 282.2);
Tailwind
colors: {
  custom: {
    50: '#70639d',
    500: '#312975',
    950: '#000000',
  },
}
SCSS
$custom: #312975;
$custom-light: #70639d;
$custom-dark: #000000;
JSON
{
  "hex": "#312975",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 117
  },
  "hsl": {
    "h": 246.316,
    "s": 48.101,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33897,
    "c": 0.12518,
    "h": 282.2
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#312975
secondary
#9EA753
accent
#D850C9
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #312975

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

Preview Lab → · Contrast checker → · Palette generator →

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