#31259B#31259B

#31259B is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.180 H 277.4°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#31259B
RGBrgb(49, 37, 155)
HSLhsl(246, 61%, 38%)
HSVhsv(246, 76%, 61%)
CMYKcmyk(68.4%, 76.1%, 0%, 39.2%)
CIE-LABlab(24.77, 41.94, -61.88)
CIE-LCHlch(24.77, 74.75, 304.13°)
OKLaboklab(36.97% 0.0234 -0.1788)
OKLCHoklch(36.97% 0.18 277.4)
XYZxyz(7.8427, 4.3420, 31.4288)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31259B #8F9B25
analogous
#25549B #31259B #6C259B
triadic
#31259B #9B3125 #259B31
tetradic
#31259B #9B2554 #8F9B25 #259B6C
square
#31259B #9B2554 #8F9B25 #259B6C
split-complementary
#31259B #9B6C25 #549B25
monochromatic
#120D38 #21196A #31259B #4131CC #6D61D9

Accessibility & contrast

On white

11.24
#31259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#31259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31259B
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31259B#FFFFFF#000000##FFFFFF
##31259B1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409E
Deuteranopia (green-blind)
#003699
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31259b;
/* rgb */ color: rgb(49, 37, 155);
/* oklch */ color: oklch(37.0% 0.180 277.4);
Tailwind
colors: {
  custom: {
    50: '#7962ba',
    500: '#31259b',
    950: '#000000',
  },
}
SCSS
$custom: #31259b;
$custom-light: #7962ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31259b",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 246.102,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.36973,
    "c": 0.1803,
    "h": 277.4
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#31259B
secondary
#B5BF5D
accent
#E543D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31259B

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

Preview Lab → · Contrast checker → · Palette generator →

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