#312479#312479

#312479 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.4% C 0.137 H 283.0°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#312479
RGBrgb(49, 36, 121)
HSLhsl(249, 54%, 31%)
HSVhsv(249, 70%, 47%)
CMYKcmyk(59.5%, 70.2%, 0%, 52.5%)
CIE-LABlab(21.19, 31.30, -46.53)
CIE-LCHlch(21.19, 56.08, 303.92°)
OKLaboklab(33.4% 0.0309 -0.1339)
OKLCHoklch(33.4% 0.137 283)
XYZxyz(5.3476, 3.2949, 18.4396)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312479 #6C7924
analogous
#244279 #312479 #5B2479
triadic
#312479 #793124 #247931
tetradic
#312479 #792442 #6C7924 #24795B
square
#312479 #792442 #6C7924 #24795B
split-complementary
#312479 #795B24 #427924
monochromatic
#0B081B #1E164A #312479 #4432A8 #604DCA

Accessibility & contrast

On white

12.66
#312479 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#312479 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312479
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312479#FFFFFF#000000##FFFFFF
##3124791.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#0A3A4B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #312479;
/* rgb */ color: rgb(49, 36, 121);
/* oklch */ color: oklch(33.4% 0.137 283.0);
Tailwind
colors: {
  custom: {
    50: '#7260a1',
    500: '#312479',
    950: '#000000',
  },
}
SCSS
$custom: #312479;
$custom-light: #7260a1;
$custom-dark: #000000;
JSON
{
  "hex": "#312479",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 121
  },
  "hsl": {
    "h": 249.176,
    "s": 54.14,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33399,
    "c": 0.13742,
    "h": 283
  },
  "luminance": 0.03295
}

Semantic roles & 50–950 ramp

primary
#312479
secondary
#9DAC4D
accent
#DE4AC7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #312479

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

Preview Lab → · Contrast checker → · Palette generator →

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