#31258D#31258D

#31258D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.163 H 279.3°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#31258D
RGBrgb(49, 37, 141)
HSLhsl(247, 58%, 35%)
HSVhsv(247, 74%, 55%)
CMYKcmyk(65.2%, 73.8%, 0%, 44.7%)
CIE-LABlab(23.33, 37.36, -55.61)
CIE-LCHlch(23.33, 66.99, 303.89°)
OKLaboklab(35.52% 0.0264 -0.1605)
OKLCHoklch(35.52% 0.163 279.3)
XYZxyz(6.7344, 3.8987, 25.5918)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31258D #818D25
analogous
#254D8D #31258D #65258D
triadic
#31258D #8D3125 #258D31
tetradic
#31258D #8D254D #818D25 #258D65
square
#31258D #8D254D #818D25 #258D65
split-complementary
#31258D #8D6525 #4D8D25
monochromatic
#0F0C2C #20185D #31258D #4232BD #6759D3

Accessibility & contrast

On white

11.80
#31258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#31258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31258D
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31258D#FFFFFF#000000##FFFFFF
##31258D1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31258d;
/* rgb */ color: rgb(49, 37, 141);
/* oklch */ color: oklch(35.5% 0.163 279.3);
Tailwind
colors: {
  custom: {
    50: '#7661af',
    500: '#31258d',
    950: '#000000',
  },
}
SCSS
$custom: #31258d;
$custom-light: #7661af;
$custom-dark: #000000;
JSON
{
  "hex": "#31258d",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 246.923,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35523,
    "c": 0.16264,
    "h": 279.3
  },
  "luminance": 0.03899
}

Semantic roles & 50–950 ramp

primary
#31258D
secondary
#ADB856
accent
#E246D0
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090511
muted
#7B7980

Preview Lab

Preview with #31258D

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

Preview Lab → · Contrast checker → · Palette generator →

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