#31259F#31259F

#31259F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.185 H 277.0°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#31259F
RGBrgb(49, 37, 159)
HSLhsl(246, 62%, 38%)
HSVhsv(246, 77%, 62%)
CMYKcmyk(69.2%, 76.7%, 0%, 37.6%)
CIE-LABlab(25.19, 43.23, -63.63)
CIE-LCHlch(25.19, 76.92, 304.19°)
OKLaboklab(37.4% 0.0224 -0.1839)
OKLCHoklch(37.4% 0.185 277)
XYZxyz(8.1842, 4.4786, 33.2273)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31259F #939F25
analogous
#25569F #31259F #6E259F
triadic
#31259F #9F3125 #259F31
tetradic
#31259F #9F2556 #939F25 #259F6E
square
#31259F #9F2556 #939F25 #259F6E
split-complementary
#31259F #9F6E25 #569F25
monochromatic
#120E3C #22196D #31259F #4132CF #6F64DB

Accessibility & contrast

On white

11.08
#31259F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#31259F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31259F
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31259F#FFFFFF#000000##FFFFFF
##31259F1.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A2
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31259f;
/* rgb */ color: rgb(49, 37, 159);
/* oklch */ color: oklch(37.4% 0.185 277.0);
Tailwind
colors: {
  custom: {
    50: '#7a62bd',
    500: '#31259f',
    950: '#000000',
  },
}
SCSS
$custom: #31259f;
$custom-light: #7a62bd;
$custom-dark: #000000;
JSON
{
  "hex": "#31259f",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 159
  },
  "hsl": {
    "h": 245.902,
    "s": 62.245,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37398,
    "c": 0.18522,
    "h": 277
  },
  "luminance": 0.04479
}

Semantic roles & 50–950 ramp

primary
#31259F
secondary
#B7C05F
accent
#E542D5
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #31259F

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

Preview Lab → · Contrast checker → · Palette generator →

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