#313BB2#313BB2

#313BB2 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.7% C 0.186 H 271.9°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#313BB2
RGBrgb(49, 59, 178)
HSLhsl(235, 57%, 45%)
HSVhsv(235, 72%, 70%)
CMYKcmyk(72.5%, 66.9%, 0%, 30.2%)
CIE-LABlab(31.79, 36.65, -64.20)
CIE-LCHlch(31.79, 73.93, 299.72°)
OKLaboklab(42.69% 0.0063 -0.1856)
OKLCHoklch(42.69% 0.186 271.9)
XYZxyz(10.8638, 6.9942, 42.8883)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BB2 #B2A831
analogous
#317CB2 #313BB2 #6831B2
triadic
#313BB2 #B2313B #3BB231
tetradic
#313BB2 #B2317C #B2A831 #31B268
square
#313BB2 #B2317C #B2A831 #31B268
split-complementary
#313BB2 #B26831 #7CB231
monochromatic
#171B52 #242B82 #313BB2 #515BCF #8188DC

Accessibility & contrast

On white

8.75
#313BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#313BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BB2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BB2#FFFFFF#000000##FFFFFF
##313BB21.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313bb2;
/* rgb */ color: rgb(49, 59, 178);
/* oklch */ color: oklch(42.7% 0.186 271.9);
Tailwind
colors: {
  custom: {
    50: '#7c71ca',
    500: '#313bb2',
    950: '#000000',
  },
}
SCSS
$custom: #313bb2;
$custom-light: #7c71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#313bb2",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 235.349,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42692,
    "c": 0.18572,
    "h": 271.9
  },
  "luminance": 0.06995
}

Semantic roles & 50–950 ramp

primary
#313BB2
secondary
#C5C079
accent
#D448E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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