#31259E#31259E

#31259E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.184 H 277.1°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#31259E
RGBrgb(49, 37, 158)
HSLhsl(246, 62%, 38%)
HSVhsv(246, 77%, 62%)
CMYKcmyk(69%, 76.6%, 0%, 38%)
CIE-LABlab(25.09, 42.91, -63.19)
CIE-LCHlch(25.09, 76.38, 304.18°)
OKLaboklab(37.29% 0.0227 -0.1826)
OKLCHoklch(37.29% 0.184 277.1)
XYZxyz(8.0977, 4.4440, 32.7722)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31259E #929E25
analogous
#25569E #31259E #6D259E
triadic
#31259E #9E3125 #259E31
tetradic
#31259E #9E2556 #929E25 #259E6D
square
#31259E #9E2556 #929E25 #259E6D
split-complementary
#31259E #9E6D25 #569E25
monochromatic
#120E3B #22196C #31259E #4131CF #6F63DA

Accessibility & contrast

On white

11.12
#31259E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#31259E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31259E
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31259E#FFFFFF#000000##FFFFFF
##31259E1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #31259e;
/* rgb */ color: rgb(49, 37, 158);
/* oklch */ color: oklch(37.3% 0.184 277.1);
Tailwind
colors: {
  custom: {
    50: '#7962bc',
    500: '#31259e',
    950: '#000000',
  },
}
SCSS
$custom: #31259e;
$custom-light: #7962bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31259e",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 158
  },
  "hsl": {
    "h": 245.95,
    "s": 62.051,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37291,
    "c": 0.184,
    "h": 277.1
  },
  "luminance": 0.04445
}

Semantic roles & 50–950 ramp

primary
#31259E
secondary
#B6C05F
accent
#E543D5
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #31259E

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

Preview Lab → · Contrast checker → · Palette generator →

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