#31247D#31247D

#31247D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.8% C 0.143 H 282.2°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#31247D
RGBrgb(49, 36, 125)
HSLhsl(249, 55%, 32%)
HSVhsv(249, 71%, 49%)
CMYKcmyk(60.8%, 71.2%, 0%, 51%)
CIE-LABlab(21.56, 32.64, -48.47)
CIE-LCHlch(21.56, 58.43, 303.95°)
OKLaboklab(33.78% 0.0303 -0.1396)
OKLCHoklch(33.78% 0.143 282.2)
XYZxyz(5.5980, 3.3950, 19.7584)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31247D #707D24
analogous
#24447D #31247D #5E247D
triadic
#31247D #7D3124 #247D31
tetradic
#31247D #7D2444 #707D24 #247D5E
square
#31247D #7D2444 #707D24 #247D5E
split-complementary
#31247D #7D5E24 #447D24
monochromatic
#0C091E #1E164D #31247D #4432AD #614FCC

Accessibility & contrast

On white

12.51
#31247D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31247D
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31247D#FFFFFF#000000##FFFFFF
##31247D1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#023B4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #31247d;
/* rgb */ color: rgb(49, 36, 125);
/* oklch */ color: oklch(33.8% 0.143 282.2);
Tailwind
colors: {
  custom: {
    50: '#7260a3',
    500: '#31247d',
    950: '#000000',
  },
}
SCSS
$custom: #31247d;
$custom-light: #7260a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31247d",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 125
  },
  "hsl": {
    "h": 248.764,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33782,
    "c": 0.14281,
    "h": 282.2
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31247D

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

Preview Lab → · Contrast checker → · Palette generator →

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