#313F70#313F70

#313F70 is a dark, moderate blue. Relative luminance 0.054; OKLCH L 38.1% C 0.086 H 270.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#313F70
RGBrgb(49, 63, 112)
HSLhsl(227, 39%, 32%)
HSVhsv(227, 56%, 44%)
CMYKcmyk(56.3%, 43.7%, 0%, 56.1%)
CIE-LABlab(27.78, 10.01, -30.16)
CIE-LCHlch(27.78, 31.78, 288.35°)
OKLaboklab(38.1% -0.0001 -0.0856)
OKLCHoklch(38.1% 0.086 270)
XYZxyz(5.9678, 5.3774, 16.0496)
Luminance0.0538 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F70 #706231
analogous
#315F70 #313F70 #433170
triadic
#313F70 #70313F #3F7031
tetradic
#313F70 #70315F #706231 #317043
square
#313F70 #70315F #706231 #317043
split-complementary
#313F70 #704331 #5F7031
monochromatic
#0C0F1B #1E2745 #313F70 #44579B #6175BA

Accessibility & contrast

On white

10.12
#313F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#313F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F70
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F70#FFFFFF#000000##FFFFFF
##313F701.0010.122.0810.12
#FFFFFF10.121.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4572
Deuteranopia (green-blind)
#233F6F
Tritanopia (blue-blind)
#114A52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313f70;
/* rgb */ color: rgb(49, 63, 112);
/* oklch */ color: oklch(38.1% 0.086 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e7399',
    500: '#313f70',
    950: '#000000',
  },
}
SCSS
$custom: #313f70;
$custom-light: #6e7399;
$custom-dark: #000000;
JSON
{
  "hex": "#313f70",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 112
  },
  "hsl": {
    "h": 226.667,
    "s": 39.13,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38105,
    "c": 0.08558,
    "h": 270
  },
  "luminance": 0.05378
}

Semantic roles & 50–950 ramp

primary
#313F70
secondary
#A1925C
accent
#B559CF
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #313F70

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

Preview Lab → · Contrast checker → · Palette generator →

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