#313A75#313A75

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

Color values

HEX#313A75
RGBrgb(49, 58, 117)
HSLhsl(232, 41%, 33%)
HSVhsv(232, 58%, 46%)
CMYKcmyk(58.1%, 50.4%, 0%, 54.1%)
CIE-LABlab(26.63, 15.22, -35.18)
CIE-LCHlch(26.63, 38.33, 293.40°)
OKLaboklab(37.33% 0.007 -0.1004)
OKLCHoklch(37.33% 0.101 274)
XYZxyz(5.9895, 4.9630, 17.4685)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A75 #756C31
analogous
#315C75 #313A75 #4A3175
triadic
#313A75 #75313A #3A7531
tetradic
#313A75 #75315C #756C31 #31754A
square
#313A75 #75315C #756C31 #31754A
split-complementary
#313A75 #754A31 #5C7531
monochromatic
#0D0F1F #1F254A #313A75 #434FA0 #636FBE

Accessibility & contrast

On white

10.54
#313A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#313A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A75
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A75#FFFFFF#000000##FFFFFF
##313A751.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4277
Deuteranopia (green-blind)
#143C74
Tritanopia (blue-blind)
#0C4752
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #313a75;
/* rgb */ color: rgb(49, 58, 117);
/* oklch */ color: oklch(37.3% 0.101 274.0);
Tailwind
colors: {
  custom: {
    50: '#6f6f9d',
    500: '#313a75',
    950: '#000000',
  },
}
SCSS
$custom: #313a75;
$custom-light: #6f6f9d;
$custom-dark: #000000;
JSON
{
  "hex": "#313a75",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 117
  },
  "hsl": {
    "h": 232.059,
    "s": 40.964,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37327,
    "c": 0.1006,
    "h": 274
  },
  "luminance": 0.04963
}

Semantic roles & 50–950 ramp

primary
#313A75
secondary
#A59B5D
accent
#C157D1
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313A75

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

Preview Lab → · Contrast checker → · Palette generator →

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