#31258A#31258A

#31258A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.159 H 279.8°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#31258A
RGBrgb(49, 37, 138)
HSLhsl(247, 58%, 34%)
HSVhsv(247, 73%, 54%)
CMYKcmyk(64.5%, 73.2%, 0%, 45.9%)
CIE-LABlab(23.04, 36.36, -54.23)
CIE-LCHlch(23.04, 65.29, 303.84°)
OKLaboklab(35.22% 0.027 -0.1564)
OKLCHoklch(35.22% 0.159 279.8)
XYZxyz(6.5142, 3.8106, 24.4321)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31258A #7E8A25
analogous
#254C8A #31258A #64258A
triadic
#31258A #8A3125 #258A31
tetradic
#31258A #8A254C #7E8A25 #258A64
square
#31258A #8A254C #7E8A25 #258A64
split-complementary
#31258A #8A6425 #4C8A25
monochromatic
#0F0B29 #20185A #31258A #4232BA #6657D2

Accessibility & contrast

On white

11.92
#31258A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#31258A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31258A
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31258A#FFFFFF#000000##FFFFFF
##31258A1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #31258a;
/* rgb */ color: rgb(49, 37, 138);
/* oklch */ color: oklch(35.2% 0.159 279.8);
Tailwind
colors: {
  custom: {
    50: '#7561ad',
    500: '#31258a',
    950: '#000000',
  },
}
SCSS
$custom: #31258a;
$custom-light: #7561ad;
$custom-dark: #000000;
JSON
{
  "hex": "#31258a",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 138
  },
  "hsl": {
    "h": 247.129,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35219,
    "c": 0.15876,
    "h": 279.8
  },
  "luminance": 0.03811
}

Semantic roles & 50–950 ramp

primary
#31258A
secondary
#ABB754
accent
#E147CF
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #31258A

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

Preview Lab → · Contrast checker → · Palette generator →

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