#313FB2#313FB2

#313FB2 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.181 H 271.2°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#313FB2
RGBrgb(49, 63, 178)
HSLhsl(233, 57%, 45%)
HSVhsv(233, 72%, 70%)
CMYKcmyk(72.5%, 64.6%, 0%, 30.2%)
CIE-LABlab(32.75, 34.11, -62.64)
CIE-LCHlch(32.75, 71.33, 298.57°)
OKLaboklab(43.39% 0.0036 -0.181)
OKLCHoklch(43.39% 0.181 271.2)
XYZxyz(11.0773, 7.4212, 42.9595)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FB2 #B2A431
analogous
#3180B2 #313FB2 #6331B2
triadic
#313FB2 #B2313F #3FB231
tetradic
#313FB2 #B23180 #B2A431 #31B263
square
#313FB2 #B23180 #B2A431 #31B263
split-complementary
#313FB2 #B26331 #80B231
monochromatic
#171D52 #242E82 #313FB2 #515FCF #818BDC

Accessibility & contrast

On white

8.45
#313FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#313FB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FB2
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FB2#FFFFFF#000000##FFFFFF
##313FB21.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313fb2;
/* rgb */ color: rgb(49, 63, 178);
/* oklch */ color: oklch(43.4% 0.181 271.2);
Tailwind
colors: {
  custom: {
    50: '#7c74ca',
    500: '#313fb2',
    950: '#000000',
  },
}
SCSS
$custom: #313fb2;
$custom-light: #7c74ca;
$custom-dark: #000000;
JSON
{
  "hex": "#313fb2",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 178
  },
  "hsl": {
    "h": 233.488,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43389,
    "c": 0.18105,
    "h": 271.2
  },
  "luminance": 0.07422
}

Semantic roles & 50–950 ramp

primary
#313FB2
secondary
#C5BD79
accent
#D048E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #313FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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