#31247C#31247C

#31247C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.141 H 282.4°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#31247C
RGBrgb(49, 36, 124)
HSLhsl(249, 55%, 31%)
HSVhsv(249, 71%, 49%)
CMYKcmyk(60.5%, 71%, 0%, 51.4%)
CIE-LABlab(21.47, 32.30, -47.99)
CIE-LCHlch(21.47, 57.85, 303.95°)
OKLaboklab(33.68% 0.0304 -0.1382)
OKLCHoklch(33.68% 0.141 282.4)
XYZxyz(5.5345, 3.3696, 19.4236)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31247C #6F7C24
analogous
#24437C #31247C #5D247C
triadic
#31247C #7C3124 #247C31
tetradic
#31247C #7C2443 #6F7C24 #247C5D
square
#31247C #7C2443 #6F7C24 #247C5D
split-complementary
#31247C #7C5D24 #437C24
monochromatic
#0C081D #1E164D #31247C #4432AB #614FCC

Accessibility & contrast

On white

12.54
#31247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#31247C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31247C
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31247C#FFFFFF#000000##FFFFFF
##31247C1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#043B4D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #31247c;
/* rgb */ color: rgb(49, 36, 124);
/* oklch */ color: oklch(33.7% 0.141 282.4);
Tailwind
colors: {
  custom: {
    50: '#7260a3',
    500: '#31247c',
    950: '#000000',
  },
}
SCSS
$custom: #31247c;
$custom-light: #7260a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31247c",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 248.864,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33685,
    "c": 0.14147,
    "h": 282.4
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#31247C
secondary
#A0AE4D
accent
#DE49C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #31247C

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

Preview Lab → · Contrast checker → · Palette generator →

#31247C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva