#313E7E#313E7E

#313E7E is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.9% C 0.109 H 271.8°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#313E7E
RGBrgb(49, 62, 126)
HSLhsl(230, 44%, 34%)
HSVhsv(230, 61%, 49%)
CMYKcmyk(61.1%, 50.8%, 0%, 50.6%)
CIE-LABlab(28.39, 15.76, -38.02)
CIE-LCHlch(28.39, 41.16, 292.51°)
OKLaboklab(38.86% 0.0035 -0.1087)
OKLCHoklch(38.86% 0.109 271.8)
XYZxyz(6.7539, 5.6040, 20.4604)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E7E #7E7131
analogous
#31657E #313E7E #4B317E
triadic
#313E7E #7E313E #3E7E31
tetradic
#313E7E #7E3165 #7E7131 #317E4B
square
#313E7E #7E3165 #7E7131 #317E4B
split-complementary
#313E7E #7E4B31 #657E31
monochromatic
#0F1326 #202852 #313E7E #4254AA #6676C3

Accessibility & contrast

On white

9.90
#313E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#313E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E7E
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E7E#FFFFFF#000000##FFFFFF
##313E7E1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4680
Deuteranopia (green-blind)
#10407D
Tritanopia (blue-blind)
#004C58
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313e7e;
/* rgb */ color: rgb(49, 62, 126);
/* oklch */ color: oklch(38.9% 0.109 271.8);
Tailwind
colors: {
  custom: {
    50: '#7173a4',
    500: '#313e7e',
    950: '#000000',
  },
}
SCSS
$custom: #313e7e;
$custom-light: #7173a4;
$custom-dark: #000000;
JSON
{
  "hex": "#313e7e",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 126
  },
  "hsl": {
    "h": 229.87,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38859,
    "c": 0.10872,
    "h": 271.8
  },
  "luminance": 0.05605
}

Semantic roles & 50–950 ramp

primary
#313E7E
secondary
#AB9E60
accent
#BE54D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313E7E

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

Preview Lab → · Contrast checker → · Palette generator →

#313E7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva