#31297C#31297C

#31297C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.135 H 281.0°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#31297C
RGBrgb(49, 41, 124)
HSLhsl(246, 50%, 32%)
HSVhsv(246, 67%, 49%)
CMYKcmyk(60.5%, 66.9%, 0%, 51.4%)
CIE-LABlab(22.63, 29.15, -46.08)
CIE-LCHlch(22.63, 54.53, 302.32°)
OKLaboklab(34.53% 0.0258 -0.1326)
OKLCHoklch(34.53% 0.135 281)
XYZxyz(5.6965, 3.6937, 19.4776)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31297C #747C29
analogous
#294B7C #31297C #5A297C
triadic
#31297C #7C3129 #297C31
tetradic
#31297C #7C294B #747C29 #297C5A
square
#31297C #7C294B #747C29 #297C5A
split-complementary
#31297C #7C5A29 #4B7C29
monochromatic
#0D0B20 #1F1A4E #31297C #4338AA #6358C8

Accessibility & contrast

On white

12.08
#31297C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31297C
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31297C#FFFFFF#000000##FFFFFF
##31297C1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00337A
Tritanopia (blue-blind)
#033E4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #31297c;
/* rgb */ color: rgb(49, 41, 124);
/* oklch */ color: oklch(34.5% 0.135 281.0);
Tailwind
colors: {
  custom: {
    50: '#7263a3',
    500: '#31297c',
    950: '#000000',
  },
}
SCSS
$custom: #31297c;
$custom-light: #7263a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31297c",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 245.783,
    "s": 50.303,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34527,
    "c": 0.13505,
    "h": 281
  },
  "luminance": 0.03694
}

Semantic roles & 50–950 ramp

primary
#31297C
secondary
#A4AD54
accent
#DA4ECC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #31297C

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

Preview Lab → · Contrast checker → · Palette generator →

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