#31347F#31347F

#31347F is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.9% C 0.124 H 276.7°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#31347F
RGBrgb(49, 52, 127)
HSLhsl(238, 44%, 35%)
HSVhsv(238, 61%, 50%)
CMYKcmyk(61.4%, 59.1%, 0%, 50.2%)
CIE-LABlab(25.69, 22.93, -43.01)
CIE-LCHlch(25.69, 48.74, 298.06°)
OKLaboklab(36.85% 0.0145 -0.1235)
OKLCHoklch(36.85% 0.124 276.7)
XYZxyz(6.3241, 4.6408, 20.6371)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31347F #7F7C31
analogous
#315B7F #31347F #55317F
triadic
#31347F #7F3134 #347F31
tetradic
#31347F #7F315B #7F7C31 #317F55
square
#31347F #7F315B #7F7C31 #317F55
split-complementary
#31347F #7F5531 #5B7F31
monochromatic
#0F1027 #202253 #31347F #4246AB #666AC4

Accessibility & contrast

On white

10.89
#31347F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#31347F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31347F
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31347F#FFFFFF#000000##FFFFFF
##31347F1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#003A7D
Tritanopia (blue-blind)
#004654
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31347f;
/* rgb */ color: rgb(49, 52, 127);
/* oklch */ color: oklch(36.9% 0.124 276.7);
Tailwind
colors: {
  custom: {
    50: '#716ba5',
    500: '#31347f',
    950: '#000000',
  },
}
SCSS
$custom: #31347f;
$custom-light: #716ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#31347f",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 127
  },
  "hsl": {
    "h": 237.692,
    "s": 44.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36851,
    "c": 0.12432,
    "h": 276.7
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#31347F
secondary
#ABA960
accent
#CF54D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31347F

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

Preview Lab → · Contrast checker → · Palette generator →

#31347F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva