#313BBE#313BBE

#313BBE is a dark, highly saturated blue. Relative luminance 0.075; OKLCH L 43.8% C 0.201 H 271.4°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#313BBE
RGBrgb(49, 59, 190)
HSLhsl(236, 59%, 47%)
HSVhsv(236, 74%, 75%)
CMYKcmyk(74.2%, 68.9%, 0%, 25.5%)
CIE-LABlab(32.91, 40.84, -69.47)
CIE-LCHlch(32.91, 80.58, 300.46°)
OKLaboklab(43.85% 0.0051 -0.201)
OKLCHoklch(43.85% 0.201 271.4)
XYZxyz(12.1217, 7.4973, 49.5135)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BBE #BEB431
analogous
#3181BE #313BBE #6E31BE
triadic
#313BBE #BE313B #3BBE31
tetradic
#313BBE #BE3181 #BEB431 #31BE6E
square
#313BBE #BE3181 #BEB431 #31BE6E
split-complementary
#313BBE #BE6E31 #81BE31
monochromatic
#181D5D #242C8D #313BBE #5861D4 #898FE1

Accessibility & contrast

On white

8.40
#313BBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#313BBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BBE
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BBE#FFFFFF#000000##FFFFFF
##313BBE1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313bbe;
/* rgb */ color: rgb(49, 59, 190);
/* oklch */ color: oklch(43.8% 0.201 271.4);
Tailwind
colors: {
  custom: {
    50: '#7f71d3',
    500: '#313bbe',
    950: '#000000',
  },
}
SCSS
$custom: #313bbe;
$custom-light: #7f71d3;
$custom-dark: #000000;
JSON
{
  "hex": "#313bbe",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 190
  },
  "hsl": {
    "h": 235.745,
    "s": 58.996,
    "l": 46.863
  },
  "oklch": {
    "l": 0.43845,
    "c": 0.20104,
    "h": 271.4
  },
  "luminance": 0.07499
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313BBE

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

Preview Lab → · Contrast checker → · Palette generator →

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