#31259A#31259A

#31259A is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.9% C 0.179 H 277.6°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#31259A
RGBrgb(49, 37, 154)
HSLhsl(246, 61%, 37%)
HSVhsv(246, 76%, 60%)
CMYKcmyk(68.2%, 76%, 0%, 39.6%)
CIE-LABlab(24.67, 41.61, -61.44)
CIE-LCHlch(24.67, 74.21, 304.11°)
OKLaboklab(36.87% 0.0236 -0.1775)
OKLCHoklch(36.87% 0.179 277.6)
XYZxyz(7.7590, 4.3085, 30.9883)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31259A #8E9A25
analogous
#25539A #31259A #6C259A
triadic
#31259A #9A3125 #259A31
tetradic
#31259A #9A2553 #8E9A25 #259A6C
square
#31259A #9A2553 #8E9A25 #259A6C
split-complementary
#31259A #9A6C25 #539A25
monochromatic
#120D37 #211969 #31259A #4131CB #6D60D9

Accessibility & contrast

On white

11.28
#31259A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#31259A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31259A
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31259A#FFFFFF#000000##FFFFFF
##31259A1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003698
Tritanopia (blue-blind)
#00475E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31259a;
/* rgb */ color: rgb(49, 37, 154);
/* oklch */ color: oklch(36.9% 0.179 277.6);
Tailwind
colors: {
  custom: {
    50: '#7862b9',
    500: '#31259a',
    950: '#000000',
  },
}
SCSS
$custom: #31259a;
$custom-light: #7862b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31259a",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 154
  },
  "hsl": {
    "h": 246.154,
    "s": 61.257,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36868,
    "c": 0.17906,
    "h": 277.6
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#31259A
secondary
#B4BE5D
accent
#E443D4
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31259A

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

Preview Lab → · Contrast checker → · Palette generator →

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