#31258F#31258F

#31258F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.165 H 279.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#31258F
RGBrgb(49, 37, 143)
HSLhsl(247, 59%, 35%)
HSVhsv(247, 74%, 56%)
CMYKcmyk(65.7%, 74.1%, 0%, 43.9%)
CIE-LABlab(23.53, 38.02, -56.52)
CIE-LCHlch(23.53, 68.12, 303.92°)
OKLaboklab(35.73% 0.026 -0.1631)
OKLCHoklch(35.73% 0.165 279.1)
XYZxyz(6.8845, 3.9587, 26.3826)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31258F #838F25
analogous
#254E8F #31258F #66258F
triadic
#31258F #8F3125 #258F31
tetradic
#31258F #8F254E #838F25 #258F66
square
#31258F #8F254E #838F25 #258F66
split-complementary
#31258F #8F6625 #4E8F25
monochromatic
#100C2E #20185E #31258F #4232C0 #685AD4

Accessibility & contrast

On white

11.72
#31258F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#31258F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31258F
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31258F#FFFFFF#000000##FFFFFF
##31258F1.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31258f;
/* rgb */ color: rgb(49, 37, 143);
/* oklch */ color: oklch(35.7% 0.165 279.1);
Tailwind
colors: {
  custom: {
    50: '#7661b1',
    500: '#31258f',
    950: '#000000',
  },
}
SCSS
$custom: #31258f;
$custom-light: #7661b1;
$custom-dark: #000000;
JSON
{
  "hex": "#31258f",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 143
  },
  "hsl": {
    "h": 246.792,
    "s": 58.889,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35726,
    "c": 0.1652,
    "h": 279.1
  },
  "luminance": 0.03959
}

Semantic roles & 50–950 ramp

primary
#31258F
secondary
#AEB957
accent
#E246D0
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #31258F

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

Preview Lab → · Contrast checker → · Palette generator →

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