#31346F#31346F

#31346F is a dark, moderate blue. Relative luminance 0.043; OKLCH L 35.6% C 0.100 H 277.8°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#31346F
RGBrgb(49, 52, 111)
HSLhsl(237, 39%, 31%)
HSVhsv(237, 56%, 44%)
CMYKcmyk(55.9%, 53.2%, 0%, 56.5%)
CIE-LABlab(24.50, 17.20, -34.77)
CIE-LCHlch(24.50, 38.79, 296.32°)
OKLaboklab(35.59% 0.0136 -0.0992)
OKLCHoklch(35.59% 0.1 277.8)
XYZxyz(5.3630, 4.2563, 15.5748)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31346F #6F6C31
analogous
#31536F #31346F #4D316F
triadic
#31346F #6F3134 #346F31
tetradic
#31346F #6F3153 #6F6C31 #316F4D
square
#31346F #6F3153 #6F6C31 #316F4D
split-complementary
#31346F #6F4D31 #536F31
monochromatic
#0C0C1A #1E2045 #31346F #444899 #6165B9

Accessibility & contrast

On white

11.34
#31346F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31346F
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31346F#FFFFFF#000000##FFFFFF
##31346F1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163D71
Deuteranopia (green-blind)
#0F386E
Tritanopia (blue-blind)
#15414C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31346f;
/* rgb */ color: rgb(49, 52, 111);
/* oklch */ color: oklch(35.6% 0.100 277.8);
Tailwind
colors: {
  custom: {
    50: '#6e6b99',
    500: '#31346f',
    950: '#000000',
  },
}
SCSS
$custom: #31346f;
$custom-light: #6e6b99;
$custom-dark: #000000;
JSON
{
  "hex": "#31346f",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 111
  },
  "hsl": {
    "h": 237.097,
    "s": 38.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35587,
    "c": 0.10014,
    "h": 277.8
  },
  "luminance": 0.04257
}

Semantic roles & 50–950 ramp

primary
#31346F
secondary
#A09D5C
accent
#C959CF
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #31346F

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

Preview Lab → · Contrast checker → · Palette generator →

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