#313A67#313A67

#313A67 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.4% C 0.078 H 273.4°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#313A67
RGBrgb(49, 58, 103)
HSLhsl(230, 36%, 30%)
HSVhsv(230, 52%, 40%)
CMYKcmyk(52.4%, 43.7%, 0%, 59.6%)
CIE-LABlab(25.74, 10.24, -27.65)
CIE-LCHlch(25.74, 29.49, 290.32°)
OKLaboklab(36.36% 0.0046 -0.0783)
OKLCHoklch(36.36% 0.078 273.4)
XYZxyz(5.2271, 4.6580, 13.4530)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A67 #675E31
analogous
#315567 #313A67 #433167
triadic
#313A67 #67313A #3A6731
tetradic
#313A67 #673155 #675E31 #316743
square
#313A67 #673155 #675E31 #316743
split-complementary
#313A67 #674331 #556731
monochromatic
#0A0C15 #1D233E #313A67 #455190 #5F6DB3

Accessibility & contrast

On white

10.87
#313A67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#313A67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A67
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A67#FFFFFF#000000##FFFFFF
##313A671.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283F69
Deuteranopia (green-blind)
#233B66
Tritanopia (blue-blind)
#1B444B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #313a67;
/* rgb */ color: rgb(49, 58, 103);
/* oklch */ color: oklch(36.4% 0.078 273.4);
Tailwind
colors: {
  custom: {
    50: '#6d6f92',
    500: '#313a67',
    950: '#000000',
  },
}
SCSS
$custom: #313a67;
$custom-light: #6d6f92;
$custom-dark: #000000;
JSON
{
  "hex": "#313a67",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 103
  },
  "hsl": {
    "h": 230,
    "s": 35.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36359,
    "c": 0.07843,
    "h": 273.4
  },
  "luminance": 0.04658
}

Semantic roles & 50–950 ramp

primary
#313A67
secondary
#988E5C
accent
#B95CCC
background
#F6F6F9
surface
#ECECF1
border
#C7C7CB
text
#07070D
muted
#7A7A7E

Preview Lab

Preview with #313A67

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

Preview Lab → · Contrast checker → · Palette generator →

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