#31297D#31297D

#31297D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.136 H 280.8°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#31297D
RGBrgb(49, 41, 125)
HSLhsl(246, 51%, 33%)
HSVhsv(246, 67%, 49%)
CMYKcmyk(60.8%, 67.2%, 0%, 51%)
CIE-LABlab(22.72, 29.50, -46.57)
CIE-LCHlch(22.72, 55.13, 302.35°)
OKLaboklab(34.62% 0.0257 -0.134)
OKLCHoklch(34.62% 0.136 280.8)
XYZxyz(5.7601, 3.7191, 19.8124)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31297D #757D29
analogous
#294B7D #31297D #5B297D
triadic
#31297D #7D3129 #297D31
tetradic
#31297D #7D294B #757D29 #297D5B
square
#31297D #7D294B #757D29 #297D5B
split-complementary
#31297D #7D5B29 #4B7D29
monochromatic
#0D0B21 #1F1A4F #31297D #4338AB #6358C8

Accessibility & contrast

On white

12.04
#31297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#31297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31297D
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31297D#FFFFFF#000000##FFFFFF
##31297D1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#013E4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #31297d;
/* rgb */ color: rgb(49, 41, 125);
/* oklch */ color: oklch(34.6% 0.136 280.8);
Tailwind
colors: {
  custom: {
    50: '#7263a3',
    500: '#31297d',
    950: '#000000',
  },
}
SCSS
$custom: #31297d;
$custom-light: #7263a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31297d",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 245.714,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34618,
    "c": 0.13644,
    "h": 280.8
  },
  "luminance": 0.0372
}

Semantic roles & 50–950 ramp

primary
#31297D
secondary
#A5AE54
accent
#DA4ECD
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #31297D

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

Preview Lab → · Contrast checker → · Palette generator →

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