#313E62#313E62

#313E62 is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.0% C 0.065 H 268.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#313E62
RGBrgb(49, 62, 98)
HSLhsl(224, 33%, 29%)
HSVhsv(224, 50%, 38%)
CMYKcmyk(50%, 36.7%, 0%, 61.6%)
CIE-LABlab(26.68, 5.78, -22.94)
CIE-LCHlch(26.68, 23.66, 284.13°)
OKLaboklab(36.99% -0.0022 -0.0645)
OKLCHoklch(36.99% 0.065 268.1)
XYZxyz(5.1931, 4.9797, 12.2404)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313E62 #625531
analogous
#315762 #313E62 #3D3162
triadic
#313E62 #62313E #3E6231
tetradic
#313E62 #623157 #625531 #31623D
square
#313E62 #623157 #625531 #31623D
split-complementary
#313E62 #623D31 #576231
monochromatic
#0A0D14 #1D2439 #313E62 #45588B #5F74AF

Accessibility & contrast

On white

10.52
#313E62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#313E62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313E62
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313E62#FFFFFF#000000##FFFFFF
##313E621.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#314163
Deuteranopia (green-blind)
#2C3D61
Tritanopia (blue-blind)
#1E464B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313e62;
/* rgb */ color: rgb(49, 62, 98);
/* oklch */ color: oklch(37.0% 0.065 268.1);
Tailwind
colors: {
  custom: {
    50: '#6c738f',
    500: '#313e62',
    950: '#000000',
  },
}
SCSS
$custom: #313e62;
$custom-light: #6c738f;
$custom-dark: #000000;
JSON
{
  "hex": "#313e62",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 98
  },
  "hsl": {
    "h": 224.082,
    "s": 33.333,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36989,
    "c": 0.06458,
    "h": 268.1
  },
  "luminance": 0.0498
}

Semantic roles & 50–950 ramp

primary
#313E62
secondary
#93845C
accent
#AD5EC9
background
#F6F6F8
surface
#EBECF0
border
#C6C7CB
text
#07080C
muted
#7A7B7D

Preview Lab

Preview with #313E62

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

Preview Lab → · Contrast checker → · Palette generator →

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