#313F7B#313F7B

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

Color values

HEX#313F7B
RGBrgb(49, 63, 123)
HSLhsl(229, 43%, 34%)
HSVhsv(229, 60%, 48%)
CMYKcmyk(60.2%, 48.8%, 0%, 51.8%)
CIE-LABlab(28.48, 13.98, -36.00)
CIE-LCHlch(28.48, 38.62, 291.23°)
OKLaboklab(38.86% 0.0019 -0.1027)
OKLCHoklch(38.86% 0.103 271.1)
XYZxyz(6.6181, 5.6375, 19.4745)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F7B #7B6D31
analogous
#31647B #313F7B #48317B
triadic
#313F7B #7B313F #3F7B31
tetradic
#313F7B #7B3164 #7B6D31 #317B48
square
#313F7B #7B3164 #7B6D31 #317B48
split-complementary
#313F7B #7B4831 #647B31
monochromatic
#0E1223 #20294F #313F7B #4255A7 #6576C2

Accessibility & contrast

On white

9.87
#313F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#313F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F7B
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F7B#FFFFFF#000000##FFFFFF
##313F7B1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23477D
Deuteranopia (green-blind)
#18407A
Tritanopia (blue-blind)
#004C57
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313f7b;
/* rgb */ color: rgb(49, 63, 123);
/* oklch */ color: oklch(38.9% 0.103 271.1);
Tailwind
colors: {
  custom: {
    50: '#7073a1',
    500: '#313f7b',
    950: '#000000',
  },
}
SCSS
$custom: #313f7b;
$custom-light: #7073a1;
$custom-dark: #000000;
JSON
{
  "hex": "#313f7b",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 123
  },
  "hsl": {
    "h": 228.649,
    "s": 43.023,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38861,
    "c": 0.10273,
    "h": 271.1
  },
  "luminance": 0.05638
}

Semantic roles & 50–950 ramp

primary
#313F7B
secondary
#A99B5F
accent
#BB55D3
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #313F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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