#31346E#31346E

#31346E is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.5% C 0.099 H 277.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#31346E
RGBrgb(49, 52, 110)
HSLhsl(237, 38%, 31%)
HSVhsv(237, 55%, 43%)
CMYKcmyk(55.5%, 52.7%, 0%, 56.9%)
CIE-LABlab(24.43, 16.85, -34.24)
CIE-LCHlch(24.43, 38.16, 296.20°)
OKLaboklab(35.51% 0.0135 -0.0977)
OKLCHoklch(35.51% 0.099 277.9)
XYZxyz(5.3082, 4.2344, 15.2864)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31346E #6E6B31
analogous
#31526E #31346E #4C316E
triadic
#31346E #6E3134 #346E31
tetradic
#31346E #6E3152 #6E6B31 #316E4C
square
#31346E #6E3152 #6E6B31 #316E4C
split-complementary
#31346E #6E4C31 #526E31
monochromatic
#0B0C19 #1E2044 #31346E #444898 #6165B9

Accessibility & contrast

On white

11.37
#31346E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#31346E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31346E
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31346E#FFFFFF#000000##FFFFFF
##31346E1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183D70
Deuteranopia (green-blind)
#10386D
Tritanopia (blue-blind)
#16414B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31346e;
/* rgb */ color: rgb(49, 52, 110);
/* oklch */ color: oklch(35.5% 0.099 277.9);
Tailwind
colors: {
  custom: {
    50: '#6e6b98',
    500: '#31346e',
    950: '#000000',
  },
}
SCSS
$custom: #31346e;
$custom-light: #6e6b98;
$custom-dark: #000000;
JSON
{
  "hex": "#31346e",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 110
  },
  "hsl": {
    "h": 237.049,
    "s": 38.365,
    "l": 31.176
  },
  "oklch": {
    "l": 0.35512,
    "c": 0.09859,
    "h": 277.9
  },
  "luminance": 0.04235
}

Semantic roles & 50–950 ramp

primary
#31346E
secondary
#9F9C5C
accent
#C959CE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #31346E

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

Preview Lab → · Contrast checker → · Palette generator →

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