#313F7E#313F7E

#313F7E is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.1% C 0.107 H 271.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#313F7E
RGBrgb(49, 63, 126)
HSLhsl(229, 44%, 34%)
HSVhsv(229, 61%, 49%)
CMYKcmyk(61.1%, 50%, 0%, 50.6%)
CIE-LABlab(28.68, 15.08, -37.56)
CIE-LCHlch(28.68, 40.47, 291.87°)
OKLaboklab(39.08% 0.0023 -0.1073)
OKLCHoklch(39.08% 0.107 271.2)
XYZxyz(6.8088, 5.7138, 20.4787)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F7E #7E7031
analogous
#31667E #313F7E #4A317E
triadic
#313F7E #7E313F #3F7E31
tetradic
#313F7E #7E3166 #7E7031 #317E4A
square
#313F7E #7E3166 #7E7031 #317E4A
split-complementary
#313F7E #7E4A31 #667E31
monochromatic
#0F1326 #202952 #313F7E #4255AA #6677C3

Accessibility & contrast

On white

9.80
#313F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#313F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F7E
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F7E#FFFFFF#000000##FFFFFF
##313F7E1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204780
Deuteranopia (green-blind)
#13407D
Tritanopia (blue-blind)
#004D58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313f7e;
/* rgb */ color: rgb(49, 63, 126);
/* oklch */ color: oklch(39.1% 0.107 271.2);
Tailwind
colors: {
  custom: {
    50: '#7173a4',
    500: '#313f7e',
    950: '#000000',
  },
}
SCSS
$custom: #313f7e;
$custom-light: #7173a4;
$custom-dark: #000000;
JSON
{
  "hex": "#313f7e",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 126
  },
  "hsl": {
    "h": 229.091,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39077,
    "c": 0.10732,
    "h": 271.2
  },
  "luminance": 0.05714
}

Semantic roles & 50–950 ramp

primary
#313F7E
secondary
#AB9D60
accent
#BD54D4
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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