#31247A#31247A

#31247A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.139 H 282.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#31247A
RGBrgb(49, 36, 122)
HSLhsl(249, 54%, 31%)
HSVhsv(249, 70%, 48%)
CMYKcmyk(59.8%, 70.5%, 0%, 52.2%)
CIE-LABlab(21.28, 31.63, -47.02)
CIE-LCHlch(21.28, 56.67, 303.93°)
OKLaboklab(33.49% 0.0308 -0.1353)
OKLCHoklch(33.49% 0.139 282.8)
XYZxyz(5.4093, 3.3195, 18.7643)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31247A #6D7A24
analogous
#24427A #31247A #5C247A
triadic
#31247A #7A3124 #247A31
tetradic
#31247A #7A2442 #6D7A24 #247A5C
square
#31247A #7A2442 #6D7A24 #247A5C
split-complementary
#31247A #7A5C24 #427A24
monochromatic
#0B081B #1E164B #31247A #4432A9 #614ECB

Accessibility & contrast

On white

12.62
#31247A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#31247A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31247A
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31247A#FFFFFF#000000##FFFFFF
##31247A1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#083A4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #31247a;
/* rgb */ color: rgb(49, 36, 122);
/* oklch */ color: oklch(33.5% 0.139 282.8);
Tailwind
colors: {
  custom: {
    50: '#7260a1',
    500: '#31247a',
    950: '#000000',
  },
}
SCSS
$custom: #31247a;
$custom-light: #7260a1;
$custom-dark: #000000;
JSON
{
  "hex": "#31247a",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 122
  },
  "hsl": {
    "h": 249.07,
    "s": 54.43,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33494,
    "c": 0.13877,
    "h": 282.8
  },
  "luminance": 0.0332
}

Semantic roles & 50–950 ramp

primary
#31247A
secondary
#9EAC4D
accent
#DE4AC7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #31247A

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

Preview Lab → · Contrast checker → · Palette generator →

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