#313EB4#313EB4

#313EB4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.185 H 271.3°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#313EB4
RGBrgb(49, 62, 180)
HSLhsl(234, 57%, 45%)
HSVhsv(234, 73%, 71%)
CMYKcmyk(72.8%, 65.6%, 0%, 29.4%)
CIE-LABlab(32.68, 35.47, -63.93)
CIE-LCHlch(32.68, 73.11, 299.02°)
OKLaboklab(43.4% 0.0042 -0.1848)
OKLCHoklch(43.4% 0.185 271.3)
XYZxyz(11.2247, 7.3924, 44.0065)
Luminance0.0739 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EB4 #B4A731
analogous
#317FB4 #313EB4 #6631B4
triadic
#313EB4 #B4313E #3EB431
tetradic
#313EB4 #B4317F #B4A731 #31B466
square
#313EB4 #B4317F #B4A731 #31B466
split-complementary
#313EB4 #B46631 #7FB431
monochromatic
#171D54 #242D84 #313EB4 #525FD0 #828BDD

Accessibility & contrast

On white

8.47
#313EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#313EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EB4
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EB4#FFFFFF#000000##FFFFFF
##313EB41.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0047B2
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313eb4;
/* rgb */ color: rgb(49, 62, 180);
/* oklch */ color: oklch(43.4% 0.185 271.3);
Tailwind
colors: {
  custom: {
    50: '#7c73cb',
    500: '#313eb4',
    950: '#000000',
  },
}
SCSS
$custom: #313eb4;
$custom-light: #7c73cb;
$custom-dark: #000000;
JSON
{
  "hex": "#313eb4",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 180
  },
  "hsl": {
    "h": 234.046,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43397,
    "c": 0.18485,
    "h": 271.3
  },
  "luminance": 0.07394
}

Semantic roles & 50–950 ramp

primary
#313EB4
secondary
#C6BF7B
accent
#D147E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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