#312379#312379

#312379 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.139 H 283.3°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#312379
RGBrgb(49, 35, 121)
HSLhsl(250, 55%, 31%)
HSVhsv(250, 71%, 47%)
CMYKcmyk(59.5%, 71.1%, 0%, 52.5%)
CIE-LABlab(20.96, 31.92, -46.90)
CIE-LCHlch(20.96, 56.73, 304.23°)
OKLaboklab(33.24% 0.0319 -0.135)
OKLCHoklch(33.24% 0.139 283.3)
XYZxyz(5.3178, 3.2352, 18.4297)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312379 #6B7923
analogous
#234079 #312379 #5C2379
triadic
#312379 #793123 #237931
tetradic
#312379 #792340 #6B7923 #23795C
square
#312379 #792340 #6B7923 #23795C
split-complementary
#312379 #795C23 #407923
monochromatic
#0B081A #1E154A #312379 #4431A8 #604BCB

Accessibility & contrast

On white

12.75
#312379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#312379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312379
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312379#FFFFFF#000000##FFFFFF
##3123791.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#0A394B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #312379;
/* rgb */ color: rgb(49, 35, 121);
/* oklch */ color: oklch(33.2% 0.139 283.3);
Tailwind
colors: {
  custom: {
    50: '#725fa1',
    500: '#312379',
    950: '#000000',
  },
}
SCSS
$custom: #312379;
$custom-light: #725fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#312379",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 121
  },
  "hsl": {
    "h": 249.767,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33236,
    "c": 0.13869,
    "h": 283.3
  },
  "luminance": 0.03236
}

Semantic roles & 50–950 ramp

primary
#312379
secondary
#9CAC4C
accent
#DE49C6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #312379

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

Preview Lab → · Contrast checker → · Palette generator →

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