#313A76#313A76

#313A76 is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.4% C 0.102 H 274.0°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#313A76
RGBrgb(49, 58, 118)
HSLhsl(232, 41%, 33%)
HSVhsv(232, 58%, 46%)
CMYKcmyk(58.5%, 50.8%, 0%, 53.7%)
CIE-LABlab(26.70, 15.58, -35.70)
CIE-LCHlch(26.70, 38.95, 293.58°)
OKLaboklab(37.4% 0.0071 -0.1019)
OKLCHoklch(37.4% 0.102 274)
XYZxyz(6.0486, 4.9867, 17.7798)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A76 #766D31
analogous
#315C76 #313A76 #4A3176
triadic
#313A76 #76313A #3A7631
tetradic
#313A76 #76315C #766D31 #31764A
square
#313A76 #76315C #766D31 #31764A
split-complementary
#313A76 #764A31 #5C7631
monochromatic
#0D0F20 #1F254B #313A76 #434FA1 #636FBE

Accessibility & contrast

On white

10.51
#313A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313A76
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A76#FFFFFF#000000##FFFFFF
##313A761.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4278
Deuteranopia (green-blind)
#133C75
Tritanopia (blue-blind)
#0A4752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313a76;
/* rgb */ color: rgb(49, 58, 118);
/* oklch */ color: oklch(37.4% 0.102 274.0);
Tailwind
colors: {
  custom: {
    50: '#6f6f9e',
    500: '#313a76',
    950: '#000000',
  },
}
SCSS
$custom: #313a76;
$custom-light: #6f6f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#313a76",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 118
  },
  "hsl": {
    "h": 232.174,
    "s": 41.317,
    "l": 32.745
  },
  "oklch": {
    "l": 0.374,
    "c": 0.10215,
    "h": 274
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#313A76
secondary
#A69C5D
accent
#C157D1
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313A76

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

Preview Lab → · Contrast checker → · Palette generator →

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