#313BB1#313BB1

#313BB1 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.6% C 0.184 H 272.0°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#313BB1
RGBrgb(49, 59, 177)
HSLhsl(235, 57%, 44%)
HSVhsv(235, 72%, 69%)
CMYKcmyk(72.3%, 66.7%, 0%, 30.6%)
CIE-LABlab(31.70, 36.29, -63.76)
CIE-LCHlch(31.70, 73.36, 299.65°)
OKLaboklab(42.6% 0.0064 -0.1843)
OKLCHoklch(42.6% 0.184 272)
XYZxyz(10.7637, 6.9541, 42.3615)
Luminance0.0696 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BB1 #B1A731
analogous
#317BB1 #313BB1 #6731B1
triadic
#313BB1 #B1313B #3BB131
tetradic
#313BB1 #B1317B #B1A731 #31B167
square
#313BB1 #B1317B #B1A731 #31B167
split-complementary
#313BB1 #B16731 #7BB131
monochromatic
#161B51 #242B81 #313BB1 #515ACF #8088DC

Accessibility & contrast

On white

8.78
#313BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#313BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BB1
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BB1#FFFFFF#000000##FFFFFF
##313BB11.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#0045AF
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313bb1;
/* rgb */ color: rgb(49, 59, 177);
/* oklch */ color: oklch(42.6% 0.184 272.0);
Tailwind
colors: {
  custom: {
    50: '#7c71c9',
    500: '#313bb1',
    950: '#000000',
  },
}
SCSS
$custom: #313bb1;
$custom-light: #7c71c9;
$custom-dark: #000000;
JSON
{
  "hex": "#313bb1",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 177
  },
  "hsl": {
    "h": 235.313,
    "s": 56.637,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42598,
    "c": 0.18441,
    "h": 272
  },
  "luminance": 0.06955
}

Semantic roles & 50–950 ramp

primary
#313BB1
secondary
#C5BF79
accent
#D448E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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