#31248D#31248D

#31248D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.164 H 279.5°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#31248D
RGBrgb(49, 36, 141)
HSLhsl(247, 59%, 35%)
HSVhsv(247, 74%, 55%)
CMYKcmyk(65.2%, 74.5%, 0%, 44.7%)
CIE-LABlab(23.13, 37.94, -55.95)
CIE-LCHlch(23.13, 67.60, 304.14°)
OKLaboklab(35.38% 0.0271 -0.1615)
OKLCHoklch(35.38% 0.164 279.5)
XYZxyz(6.7037, 3.8373, 25.5815)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31248D #808D24
analogous
#244B8D #31248D #66248D
triadic
#31248D #8D3124 #248D31
tetradic
#31248D #8D244B #808D24 #248D66
square
#31248D #8D244B #808D24 #248D66
split-complementary
#31248D #8D6624 #4B8D24
monochromatic
#0F0B2B #20185C #31248D #4230BE #6757D4

Accessibility & contrast

On white

11.88
#31248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#31248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31248D
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31248D#FFFFFF#000000##FFFFFF
##31248D1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31248d;
/* rgb */ color: rgb(49, 36, 141);
/* oklch */ color: oklch(35.4% 0.164 279.5);
Tailwind
colors: {
  custom: {
    50: '#7661af',
    500: '#31248d',
    950: '#000000',
  },
}
SCSS
$custom: #31248d;
$custom-light: #7661af;
$custom-dark: #000000;
JSON
{
  "hex": "#31248d",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 247.429,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35375,
    "c": 0.16373,
    "h": 279.5
  },
  "luminance": 0.03838
}

Semantic roles & 50–950 ramp

primary
#31248D
secondary
#ACB854
accent
#E345CF
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #31248D

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

Preview Lab → · Contrast checker → · Palette generator →

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