#31345F#31345F

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

Color values

HEX#31345F
RGBrgb(49, 52, 95)
HSLhsl(236, 32%, 28%)
HSVhsv(236, 48%, 37%)
CMYKcmyk(48.4%, 45.3%, 0%, 62.7%)
CIE-LABlab(23.45, 11.61, -26.08)
CIE-LCHlch(23.45, 28.55, 294.00°)
OKLaboklab(34.46% 0.0113 -0.0737)
OKLCHoklch(34.46% 0.075 278.7)
XYZxyz(4.5595, 3.9349, 11.3435)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31345F #5F5C31
analogous
#314B5F #31345F #45315F
triadic
#31345F #5F3134 #345F31
tetradic
#31345F #5F314B #5F5C31 #315F45
square
#31345F #5F314B #5F5C31 #315F45
split-complementary
#31345F #5F4531 #4B5F31
monochromatic
#0A0B14 #1C1E37 #31345F #464A87 #5E63AC

Accessibility & contrast

On white

11.75
#31345F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#31345F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31345F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31345F#FFFFFF#000000##FFFFFF
##31345F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243A61
Deuteranopia (green-blind)
#20365E
Tritanopia (blue-blind)
#213D45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #31345f;
/* rgb */ color: rgb(49, 52, 95);
/* oklch */ color: oklch(34.5% 0.075 278.7);
Tailwind
colors: {
  custom: {
    50: '#6c6b8c',
    500: '#31345f',
    950: '#000000',
  },
}
SCSS
$custom: #31345f;
$custom-light: #6c6b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#31345f",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 95
  },
  "hsl": {
    "h": 236.087,
    "s": 31.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34456,
    "c": 0.0746,
    "h": 278.7
  },
  "luminance": 0.03935
}

Semantic roles & 50–950 ramp

primary
#31345F
secondary
#908D5C
accent
#C160C8
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#07060C
muted
#7A7A7D

Preview Lab

Preview with #31345F

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

Preview Lab → · Contrast checker → · Palette generator →

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