#31247E#31247E

#31247E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.144 H 282.0°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#31247E
RGBrgb(49, 36, 126)
HSLhsl(249, 56%, 32%)
HSVhsv(249, 71%, 49%)
CMYKcmyk(61.1%, 71.4%, 0%, 50.6%)
CIE-LABlab(21.66, 32.97, -48.95)
CIE-LCHlch(21.66, 59.02, 303.96°)
OKLaboklab(33.88% 0.0301 -0.141)
OKLCHoklch(33.88% 0.144 282)
XYZxyz(5.6622, 3.4207, 20.0965)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31247E #717E24
analogous
#24447E #31247E #5E247E
triadic
#31247E #7E3124 #247E31
tetradic
#31247E #7E2444 #717E24 #247E5E
square
#31247E #7E2444 #717E24 #247E5E
split-complementary
#31247E #7E5E24 #447E24
monochromatic
#0C091F #1E164E #31247E #4432AE #6250CD

Accessibility & contrast

On white

12.47
#31247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#31247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31247E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31247E#FFFFFF#000000##FFFFFF
##31247E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31247e;
/* rgb */ color: rgb(49, 36, 126);
/* oklch */ color: oklch(33.9% 0.144 282.0);
Tailwind
colors: {
  custom: {
    50: '#7360a4',
    500: '#31247e',
    950: '#000000',
  },
}
SCSS
$custom: #31247e;
$custom-light: #7360a4;
$custom-dark: #000000;
JSON
{
  "hex": "#31247e",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 248.667,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33878,
    "c": 0.14415,
    "h": 282
  },
  "luminance": 0.03421
}

Semantic roles & 50–950 ramp

primary
#31247E
secondary
#A2B04E
accent
#DF49C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #31247E

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

Preview Lab → · Contrast checker → · Palette generator →

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