#31259D#31259D

#31259D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.183 H 277.2°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#31259D
RGBrgb(49, 37, 157)
HSLhsl(246, 62%, 38%)
HSVhsv(246, 76%, 62%)
CMYKcmyk(68.8%, 76.4%, 0%, 38.4%)
CIE-LABlab(24.98, 42.59, -62.76)
CIE-LCHlch(24.98, 75.84, 304.16°)
OKLaboklab(37.19% 0.0229 -0.1813)
OKLCHoklch(37.19% 0.183 277.2)
XYZxyz(8.0120, 4.4097, 32.3207)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31259D #919D25
analogous
#25559D #31259D #6D259D
triadic
#31259D #9D3125 #259D31
tetradic
#31259D #9D2555 #919D25 #259D6D
square
#31259D #9D2555 #919D25 #259D6D
split-complementary
#31259D #9D6D25 #559D25
monochromatic
#120E3A #22196B #31259D #4131CE #6E62DA

Accessibility & contrast

On white

11.16
#31259D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#31259D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31259D
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31259D#FFFFFF#000000##FFFFFF
##31259D1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A0
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#00485F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31259d;
/* rgb */ color: rgb(49, 37, 157);
/* oklch */ color: oklch(37.2% 0.183 277.2);
Tailwind
colors: {
  custom: {
    50: '#7962bb',
    500: '#31259d',
    950: '#000000',
  },
}
SCSS
$custom: #31259d;
$custom-light: #7962bb;
$custom-dark: #000000;
JSON
{
  "hex": "#31259d",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 157
  },
  "hsl": {
    "h": 246,
    "s": 61.856,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37185,
    "c": 0.18277,
    "h": 277.2
  },
  "luminance": 0.0441
}

Semantic roles & 50–950 ramp

primary
#31259D
secondary
#B6BF5E
accent
#E543D5
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31259D

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

Preview Lab → · Contrast checker → · Palette generator →

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