#313F7A#313F7A

#313F7A is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.8% C 0.101 H 271.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#313F7A
RGBrgb(49, 63, 122)
HSLhsl(228, 43%, 34%)
HSVhsv(228, 60%, 48%)
CMYKcmyk(59.8%, 48.4%, 0%, 52.2%)
CIE-LABlab(28.41, 13.62, -35.47)
CIE-LCHlch(28.41, 38.00, 291.00°)
OKLaboklab(38.79% 0.0017 -0.1012)
OKLCHoklch(38.79% 0.101 271)
XYZxyz(6.5558, 5.6126, 19.1465)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F7A #7A6C31
analogous
#31637A #313F7A #47317A
triadic
#313F7A #7A313F #3F7A31
tetradic
#313F7A #7A3163 #7A6C31 #317A47
square
#313F7A #7A3163 #7A6C31 #317A47
split-complementary
#313F7A #7A4731 #637A31
monochromatic
#0E1223 #1F284E #313F7A #4356A6 #6476C1

Accessibility & contrast

On white

9.89
#313F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313F7A
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F7A#FFFFFF#000000##FFFFFF
##313F7A1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23467C
Deuteranopia (green-blind)
#194079
Tritanopia (blue-blind)
#004C56
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #313f7a;
/* rgb */ color: rgb(49, 63, 122);
/* oklch */ color: oklch(38.8% 0.101 271.0);
Tailwind
colors: {
  custom: {
    50: '#7073a1',
    500: '#313f7a',
    950: '#000000',
  },
}
SCSS
$custom: #313f7a;
$custom-light: #7073a1;
$custom-dark: #000000;
JSON
{
  "hex": "#313f7a",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 122
  },
  "hsl": {
    "h": 228.493,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3879,
    "c": 0.10118,
    "h": 271
  },
  "luminance": 0.05613
}

Semantic roles & 50–950 ramp

primary
#313F7A
secondary
#A89A5E
accent
#BA55D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08080F
muted
#7B7B7E

Preview Lab

Preview with #313F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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