#313CBE#313CBE

#313CBE is a dark, vivid blue. Relative luminance 0.076; OKLCH L 44.0% C 0.200 H 271.3°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#313CBE
RGBrgb(49, 60, 190)
HSLhsl(235, 59%, 47%)
HSVhsv(235, 74%, 75%)
CMYKcmyk(74.2%, 68.4%, 0%, 25.5%)
CIE-LABlab(33.14, 40.24, -69.10)
CIE-LCHlch(33.14, 79.96, 300.21°)
OKLaboklab(44.01% 0.0045 -0.1999)
OKLCHoklch(44.01% 0.2 271.3)
XYZxyz(12.1736, 7.6011, 49.5308)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CBE #BEB331
analogous
#3183BE #313CBE #6D31BE
triadic
#313CBE #BE313C #3CBE31
tetradic
#313CBE #BE3183 #BEB331 #31BE6D
square
#313CBE #BE3183 #BEB331 #31BE6D
split-complementary
#313CBE #BE6D31 #83BE31
monochromatic
#181D5D #242D8D #313CBE #5862D4 #8990E1

Accessibility & contrast

On white

8.33
#313CBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#313CBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CBE
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CBE#FFFFFF#000000##FFFFFF
##313CBE1.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#0047BC
Tritanopia (blue-blind)
#005F78
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #313cbe;
/* rgb */ color: rgb(49, 60, 190);
/* oklch */ color: oklch(44.0% 0.200 271.3);
Tailwind
colors: {
  custom: {
    50: '#7f72d3',
    500: '#313cbe',
    950: '#000000',
  },
}
SCSS
$custom: #313cbe;
$custom-light: #7f72d3;
$custom-dark: #000000;
JSON
{
  "hex": "#313cbe",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 190
  },
  "hsl": {
    "h": 235.319,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44007,
    "c": 0.19995,
    "h": 271.3
  },
  "luminance": 0.07602
}

Semantic roles & 50–950 ramp

primary
#313CBE
secondary
#CAC580
accent
#D646E2
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #313CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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