#31499C#31499C

#31499C is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.5% C 0.138 H 268.1°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#31499C
RGBrgb(49, 73, 156)
HSLhsl(227, 52%, 40%)
HSVhsv(227, 69%, 61%)
CMYKcmyk(68.6%, 53.2%, 0%, 38.8%)
CIE-LABlab(33.60, 19.45, -48.07)
CIE-LCHlch(33.60, 51.86, 292.03°)
OKLaboklab(43.48% -0.0047 -0.1381)
OKLCHoklch(43.48% 0.138 268.1)
XYZxyz(9.6479, 7.8174, 32.4465)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31499C #9C8431
analogous
#317E9C #31499C #4E319C
triadic
#31499C #9C3149 #499C31
tetradic
#31499C #9C317E #9C8431 #319C4E
square
#31499C #9C317E #9C8431 #319C4E
split-complementary
#31499C #9C4E31 #7E9C31
monochromatic
#141D3F #22336D #31499C #4562C5 #7489D3

Accessibility & contrast

On white

8.19
#31499C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#31499C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31499C
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31499C#FFFFFF#000000##FFFFFF
##31499C1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13549F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#005D6B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #31499c;
/* rgb */ color: rgb(49, 73, 156);
/* oklch */ color: oklch(43.5% 0.138 268.1);
Tailwind
colors: {
  custom: {
    50: '#767bba',
    500: '#31499c',
    950: '#000000',
  },
}
SCSS
$custom: #31499c;
$custom-light: #767bba;
$custom-dark: #000000;
JSON
{
  "hex": "#31499c",
  "rgb": {
    "r": 49,
    "g": 73,
    "b": 156
  },
  "hsl": {
    "h": 226.542,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43475,
    "c": 0.13817,
    "h": 268.1
  },
  "luminance": 0.07818
}

Semantic roles & 50–950 ramp

primary
#31499C
secondary
#BBAA6D
accent
#BB4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #31499C

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

Preview Lab → · Contrast checker → · Palette generator →

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