#313DAF#313DAF

#313DAF is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.8% C 0.179 H 271.7°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#313DAF
RGBrgb(49, 61, 175)
HSLhsl(234, 56%, 44%)
HSVhsv(234, 72%, 69%)
CMYKcmyk(72%, 65.1%, 0%, 31.4%)
CIE-LABlab(32.00, 34.32, -62.08)
CIE-LCHlch(32.00, 70.93, 298.93°)
OKLaboklab(42.76% 0.0052 -0.1794)
OKLCHoklch(42.76% 0.179 271.7)
XYZxyz(10.6706, 7.0845, 41.3542)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DAF #AFA331
analogous
#317CAF #313DAF #6431AF
triadic
#313DAF #AF313D #3DAF31
tetradic
#313DAF #AF317C #AFA331 #31AF64
square
#313DAF #AF317C #AFA331 #31AF64
split-complementary
#313DAF #AF6431 #7CAF31
monochromatic
#161C4F #242C7F #313DAF #4F5BCE #7F88DB

Accessibility & contrast

On white

8.69
#313DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#313DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DAF
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DAF#FFFFFF#000000##FFFFFF
##313DAF1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0045AD
Tritanopia (blue-blind)
#005B70
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313daf;
/* rgb */ color: rgb(49, 61, 175);
/* oklch */ color: oklch(42.8% 0.179 271.7);
Tailwind
colors: {
  custom: {
    50: '#7b72c8',
    500: '#313daf',
    950: '#000000',
  },
}
SCSS
$custom: #313daf;
$custom-light: #7b72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#313daf",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 175
  },
  "hsl": {
    "h": 234.286,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42759,
    "c": 0.17945,
    "h": 271.7
  },
  "luminance": 0.07086
}

Semantic roles & 50–950 ramp

primary
#313DAF
secondary
#C4BD78
accent
#D148E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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