#31258C#31258C

#31258C is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.161 H 279.5°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#31258C
RGBrgb(49, 37, 140)
HSLhsl(247, 58%, 35%)
HSVhsv(247, 74%, 55%)
CMYKcmyk(65%, 73.6%, 0%, 45.1%)
CIE-LABlab(23.23, 37.03, -55.15)
CIE-LCHlch(23.23, 66.43, 303.88°)
OKLaboklab(35.42% 0.0266 -0.1591)
OKLCHoklch(35.42% 0.161 279.5)
XYZxyz(6.6603, 3.8690, 25.2017)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31258C #808C25
analogous
#254D8C #31258C #64258C
triadic
#31258C #8C3125 #258C31
tetradic
#31258C #8C254D #808C25 #258C64
square
#31258C #8C254D #808C25 #258C64
split-complementary
#31258C #8C6425 #4D8C25
monochromatic
#0F0B2B #20185C #31258C #4232BC #6758D3

Accessibility & contrast

On white

11.84
#31258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#31258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31258C
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31258C#FFFFFF#000000##FFFFFF
##31258C1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #31258c;
/* rgb */ color: rgb(49, 37, 140);
/* oklch */ color: oklch(35.4% 0.161 279.5);
Tailwind
colors: {
  custom: {
    50: '#7561af',
    500: '#31258c',
    950: '#000000',
  },
}
SCSS
$custom: #31258c;
$custom-light: #7561af;
$custom-dark: #000000;
JSON
{
  "hex": "#31258c",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 246.99,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35421,
    "c": 0.16135,
    "h": 279.5
  },
  "luminance": 0.0387
}

Semantic roles & 50–950 ramp

primary
#31258C
secondary
#ACB855
accent
#E146CF
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #31258C

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

Preview Lab → · Contrast checker → · Palette generator →

#31258C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva