#31345E#31345E

#31345E is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.4% C 0.073 H 278.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#31345E
RGBrgb(49, 52, 94)
HSLhsl(236, 31%, 28%)
HSVhsv(236, 48%, 37%)
CMYKcmyk(47.9%, 44.7%, 0%, 63.1%)
CIE-LABlab(23.39, 11.27, -25.52)
CIE-LCHlch(23.39, 27.90, 293.82°)
OKLaboklab(34.39% 0.0111 -0.0721)
OKLCHoklch(34.39% 0.073 278.7)
XYZxyz(4.5144, 3.9169, 11.1057)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31345E #5E5B31
analogous
#314A5E #31345E #44315E
triadic
#31345E #5E3134 #345E31
tetradic
#31345E #5E314A #5E5B31 #315E44
square
#31345E #5E314A #5E5B31 #315E44
split-complementary
#31345E #5E4431 #4A5E31
monochromatic
#0A0B14 #1C1E36 #31345E #464A86 #5E63AB

Accessibility & contrast

On white

11.78
#31345E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#31345E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31345E
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31345E#FFFFFF#000000##FFFFFF
##31345E1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243A60
Deuteranopia (green-blind)
#21365D
Tritanopia (blue-blind)
#223D44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31345e;
/* rgb */ color: rgb(49, 52, 94);
/* oklch */ color: oklch(34.4% 0.073 278.7);
Tailwind
colors: {
  custom: {
    50: '#6c6b8c',
    500: '#31345e',
    950: '#000000',
  },
}
SCSS
$custom: #31345e;
$custom-light: #6c6b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#31345e",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 94
  },
  "hsl": {
    "h": 236,
    "s": 31.469,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3439,
    "c": 0.07294,
    "h": 278.7
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#31345E
secondary
#8F8C5C
accent
#C160C8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #31345E

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

Preview Lab → · Contrast checker → · Palette generator →

#31345E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva