#31295E#31295E

#31295E is a dark, moderate blue. Relative luminance 0.030; OKLCH L 32.0% C 0.091 H 287.0°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#31295E
RGBrgb(49, 41, 94)
HSLhsl(249, 39%, 26%)
HSVhsv(249, 56%, 37%)
CMYKcmyk(47.9%, 56.4%, 0%, 63.1%)
CIE-LABlab(20.23, 18.90, -30.57)
CIE-LCHlch(20.23, 35.94, 301.72°)
OKLaboklab(32% 0.0266 -0.087)
OKLCHoklch(32% 0.091 287)
XYZxyz(4.0794, 3.0468, 10.9607)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31295E #565E29
analogous
#293C5E #31295E #4C295E
triadic
#31295E #5E3129 #295E31
tetradic
#31295E #5E293C #565E29 #295E4C
square
#31295E #5E293C #565E29 #295E4C
split-complementary
#31295E #5E4C29 #3C5E29
monochromatic
#0B0915 #1B1633 #31295E #473C89 #5E4FB2

Accessibility & contrast

On white

13.05
#31295E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#31295E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31295E
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31295E#FFFFFF#000000##FFFFFF
##31295E1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103260
Deuteranopia (green-blind)
#0F2F5D
Tritanopia (blue-blind)
#23343F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #31295e;
/* rgb */ color: rgb(49, 41, 94);
/* oklch */ color: oklch(32.0% 0.091 287.0);
Tailwind
colors: {
  custom: {
    50: '#6d638c',
    500: '#31295e',
    950: '#000000',
  },
}
SCSS
$custom: #31295e;
$custom-light: #6d638c;
$custom-dark: #000000;
JSON
{
  "hex": "#31295e",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 94
  },
  "hsl": {
    "h": 249.057,
    "s": 39.259,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32002,
    "c": 0.09094,
    "h": 287
  },
  "luminance": 0.03047
}

Semantic roles & 50–950 ramp

primary
#31295E
secondary
#879152
accent
#CF59BD
background
#F6F5F8
surface
#ECEAF0
border
#C7C6CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #31295E

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

Preview Lab → · Contrast checker → · Palette generator →

#31295E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva