#313EAF#313EAF

#313EAF is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.178 H 271.4°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#313EAF
RGBrgb(49, 62, 175)
HSLhsl(234, 56%, 44%)
HSVhsv(234, 72%, 69%)
CMYKcmyk(72%, 64.6%, 0%, 31.4%)
CIE-LABlab(32.24, 33.68, -61.69)
CIE-LCHlch(32.24, 70.28, 298.63°)
OKLaboklab(42.94% 0.0045 -0.1782)
OKLCHoklch(42.94% 0.178 271.4)
XYZxyz(10.7245, 7.1923, 41.3722)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EAF #AFA231
analogous
#317DAF #313EAF #6331AF
triadic
#313EAF #AF313E #3EAF31
tetradic
#313EAF #AF317D #AFA231 #31AF63
square
#313EAF #AF317D #AFA231 #31AF63
split-complementary
#313EAF #AF6331 #7DAF31
monochromatic
#161C4F #242D7F #313EAF #4F5CCE #7F89DB

Accessibility & contrast

On white

8.61
#313EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#313EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EAF
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EAF#FFFFFF#000000##FFFFFF
##313EAF1.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B3
Deuteranopia (green-blind)
#0046AD
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #313eaf;
/* rgb */ color: rgb(49, 62, 175);
/* oklch */ color: oklch(42.9% 0.178 271.4);
Tailwind
colors: {
  custom: {
    50: '#7b73c8',
    500: '#313eaf',
    950: '#000000',
  },
}
SCSS
$custom: #313eaf;
$custom-light: #7b73c8;
$custom-dark: #000000;
JSON
{
  "hex": "#313eaf",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 233.81,
    "s": 56.25,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42936,
    "c": 0.17827,
    "h": 271.4
  },
  "luminance": 0.07193
}

Semantic roles & 50–950 ramp

primary
#313EAF
secondary
#C4BC78
accent
#D048E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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