#313ABF#313ABF

#313ABF is a dark, highly saturated blue. Relative luminance 0.074; OKLCH L 43.8% C 0.203 H 271.5°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#313ABF
RGBrgb(49, 58, 191)
HSLhsl(236, 59%, 47%)
HSVhsv(236, 74%, 75%)
CMYKcmyk(74.3%, 69.6%, 0%, 25.1%)
CIE-LABlab(32.79, 41.80, -70.26)
CIE-LCHlch(32.79, 81.75, 300.75°)
OKLaboklab(43.78% 0.0055 -0.2033)
OKLCHoklch(43.78% 0.203 271.5)
XYZxyz(12.1805, 7.4394, 50.0741)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313ABF #BFB631
analogous
#3181BF #313ABF #6F31BF
triadic
#313ABF #BF313A #3ABF31
tetradic
#313ABF #BF3181 #BFB631 #31BF6F
square
#313ABF #BF3181 #BFB631 #31BF6F
split-complementary
#313ABF #BF6F31 #81BF31
monochromatic
#181C5E #252B8E #313ABF #5961D4 #8A8FE1

Accessibility & contrast

On white

8.44
#313ABF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#313ABF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313ABF
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313ABF#FFFFFF#000000##FFFFFF
##313ABF1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C3
Deuteranopia (green-blind)
#0046BD
Tritanopia (blue-blind)
#005F78
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313abf;
/* rgb */ color: rgb(49, 58, 191);
/* oklch */ color: oklch(43.8% 0.203 271.5);
Tailwind
colors: {
  custom: {
    50: '#7f71d4',
    500: '#313abf',
    950: '#000000',
  },
}
SCSS
$custom: #313abf;
$custom-light: #7f71d4;
$custom-dark: #000000;
JSON
{
  "hex": "#313abf",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 191
  },
  "hsl": {
    "h": 236.197,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.43782,
    "c": 0.20337,
    "h": 271.5
  },
  "luminance": 0.07441
}

Semantic roles & 50–950 ramp

primary
#313ABF
secondary
#CBC681
accent
#D845E2
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #313ABF

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

Preview Lab → · Contrast checker → · Palette generator →

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