#312972#312972

#312972 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.121 H 282.7°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#312972
RGBrgb(49, 41, 114)
HSLhsl(247, 47%, 30%)
HSVhsv(247, 64%, 45%)
CMYKcmyk(57%, 64%, 0%, 55.3%)
CIE-LABlab(21.78, 25.71, -41.10)
CIE-LCHlch(21.78, 48.48, 302.03°)
OKLaboklab(33.63% 0.0266 -0.1179)
OKLCHoklch(33.63% 0.121 282.7)
XYZxyz(5.0959, 3.4534, 16.3144)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312972 #6A7229
analogous
#294672 #312972 #552972
triadic
#312972 #723129 #297231
tetradic
#312972 #722946 #6A7229 #297255
square
#312972 #722946 #6A7229 #297255
split-complementary
#312972 #725529 #467229
monochromatic
#0A0918 #1E1945 #312972 #44399F #6054C1

Accessibility & contrast

On white

12.42
#312972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#312972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312972
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312972#FFFFFF#000000##FFFFFF
##3129721.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#143B49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312972;
/* rgb */ color: rgb(49, 41, 114);
/* oklch */ color: oklch(33.6% 0.121 282.7);
Tailwind
colors: {
  custom: {
    50: '#70639b',
    500: '#312972',
    950: '#000000',
  },
}
SCSS
$custom: #312972;
$custom-light: #70639b;
$custom-dark: #000000;
JSON
{
  "hex": "#312972",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 114
  },
  "hsl": {
    "h": 246.575,
    "s": 47.097,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33634,
    "c": 0.12087,
    "h": 282.7
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#312972
secondary
#9BA453
accent
#D751C8
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #312972

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

Preview Lab → · Contrast checker → · Palette generator →

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