#31439C#31439C

#31439C is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.2% C 0.146 H 270.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#31439C
RGBrgb(49, 67, 156)
HSLhsl(230, 52%, 40%)
HSVhsv(230, 69%, 61%)
CMYKcmyk(68.6%, 57.1%, 0%, 38.8%)
CIE-LABlab(31.96, 23.46, -50.73)
CIE-LCHlch(31.96, 55.89, 294.82°)
OKLaboklab(42.24% 0.0008 -0.146)
OKLCHoklch(42.24% 0.146 270.3)
XYZxyz(9.2725, 7.0667, 32.3214)
Luminance0.0707 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31439C #9C8A31
analogous
#31789C #31439C #55319C
triadic
#31439C #9C3143 #439C31
tetradic
#31439C #9C3178 #9C8A31 #319C55
square
#31439C #9C3178 #9C8A31 #319C55
split-complementary
#31439C #9C5531 #789C31
monochromatic
#141B3F #222F6D #31439C #455BC5 #7484D3

Accessibility & contrast

On white

8.70
#31439C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#31439C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31439C
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31439C#FFFFFF#000000##FFFFFF
##31439C1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#005969
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31439c;
/* rgb */ color: rgb(49, 67, 156);
/* oklch */ color: oklch(42.2% 0.146 270.3);
Tailwind
colors: {
  custom: {
    50: '#7676ba',
    500: '#31439c',
    950: '#000000',
  },
}
SCSS
$custom: #31439c;
$custom-light: #7676ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31439c",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 156
  },
  "hsl": {
    "h": 229.907,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.4224,
    "c": 0.14599,
    "h": 270.3
  },
  "luminance": 0.07068
}

Semantic roles & 50–950 ramp

primary
#31439C
secondary
#BBAE6D
accent
#C34CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #31439C

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

Preview Lab → · Contrast checker → · Palette generator →

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