#31346A#31346A

#31346A is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.2% C 0.092 H 278.1°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#31346A
RGBrgb(49, 52, 106)
HSLhsl(237, 37%, 30%)
HSVhsv(237, 54%, 42%)
CMYKcmyk(53.8%, 50.9%, 0%, 58.4%)
CIE-LABlab(24.16, 15.43, -32.10)
CIE-LCHlch(24.16, 35.62, 295.67°)
OKLaboklab(35.22% 0.0131 -0.0914)
OKLCHoklch(35.22% 0.092 278.1)
XYZxyz(5.0953, 4.1493, 14.1653)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31346A #6A6731
analogous
#31506A #31346A #4A316A
triadic
#31346A #6A3134 #346A31
tetradic
#31346A #6A3150 #6A6731 #316A4A
square
#31346A #6A3150 #6A6731 #316A4A
split-complementary
#31346A #6A4A31 #506A31
monochromatic
#0A0B16 #1E1F40 #31346A #444994 #6064B5

Accessibility & contrast

On white

11.48
#31346A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#31346A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31346A
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31346A#FFFFFF#000000##FFFFFF
##31346A1.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3C6C
Deuteranopia (green-blind)
#163769
Tritanopia (blue-blind)
#1A404A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #31346a;
/* rgb */ color: rgb(49, 52, 106);
/* oklch */ color: oklch(35.2% 0.092 278.1);
Tailwind
colors: {
  custom: {
    50: '#6e6b95',
    500: '#31346a',
    950: '#000000',
  },
}
SCSS
$custom: #31346a;
$custom-light: #6e6b95;
$custom-dark: #000000;
JSON
{
  "hex": "#31346a",
  "rgb": {
    "r": 49,
    "g": 52,
    "b": 106
  },
  "hsl": {
    "h": 236.842,
    "s": 36.774,
    "l": 30.392
  },
  "oklch": {
    "l": 0.35219,
    "c": 0.09231,
    "h": 278.1
  },
  "luminance": 0.0415
}

Semantic roles & 50–950 ramp

primary
#31346A
secondary
#9B985C
accent
#C75BCD
background
#F6F6F9
surface
#ECEBF1
border
#C7C6CB
text
#07060D
muted
#7A7A7E

Preview Lab

Preview with #31346A

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

Preview Lab → · Contrast checker → · Palette generator →

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