#31248C#31248C

#31248C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.162 H 279.7°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#31248C
RGBrgb(49, 36, 140)
HSLhsl(248, 59%, 35%)
HSVhsv(248, 74%, 55%)
CMYKcmyk(65%, 74.3%, 0%, 45.1%)
CIE-LABlab(23.03, 37.61, -55.49)
CIE-LCHlch(23.03, 67.04, 304.12°)
OKLaboklab(35.27% 0.0274 -0.1601)
OKLCHoklch(35.27% 0.162 279.7)
XYZxyz(6.6296, 3.8077, 25.1914)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31248C #7F8C24
analogous
#244B8C #31248C #65248C
triadic
#31248C #8C3124 #248C31
tetradic
#31248C #8C244B #7F8C24 #248C65
square
#31248C #8C244B #7F8C24 #248C65
split-complementary
#31248C #8C6524 #4B8C24
monochromatic
#0F0B2B #20175B #31248C #4231BD #6657D4

Accessibility & contrast

On white

11.92
#31248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#31248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31248C
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31248C#FFFFFF#000000##FFFFFF
##31248C1.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)
#003B8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #31248c;
/* rgb */ color: rgb(49, 36, 140);
/* oklch */ color: oklch(35.3% 0.162 279.7);
Tailwind
colors: {
  custom: {
    50: '#7660af',
    500: '#31248c',
    950: '#000000',
  },
}
SCSS
$custom: #31248c;
$custom-light: #7660af;
$custom-dark: #000000;
JSON
{
  "hex": "#31248c",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 247.5,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35273,
    "c": 0.16245,
    "h": 279.7
  },
  "luminance": 0.03808
}

Semantic roles & 50–950 ramp

primary
#31248C
secondary
#ABB854
accent
#E246CF
background
#F7F5FA
surface
#EEEAF5
border
#C9C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #31248C

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

Preview Lab → · Contrast checker → · Palette generator →

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