#313BBA#313BBA

#313BBA is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.5% C 0.196 H 271.6°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#313BBA
RGBrgb(49, 59, 186)
HSLhsl(236, 58%, 46%)
HSVhsv(236, 74%, 73%)
CMYKcmyk(73.7%, 68.3%, 0%, 27.1%)
CIE-LABlab(32.54, 39.45, -67.73)
CIE-LCHlch(32.54, 78.38, 300.22°)
OKLaboklab(43.46% 0.0055 -0.1959)
OKLCHoklch(43.46% 0.196 271.6)
XYZxyz(11.6905, 7.3249, 47.2426)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BBA #BAB031
analogous
#317FBA #313BBA #6B31BA
triadic
#313BBA #BA313B #3BBA31
tetradic
#313BBA #BA317F #BAB031 #31BA6B
square
#313BBA #BA317F #BAB031 #31BA6B
split-complementary
#313BBA #BA6B31 #7FBA31
monochromatic
#171C59 #242C8A #313BBA #565FD2 #868DDF

Accessibility & contrast

On white

8.52
#313BBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#313BBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BBA
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BBA#FFFFFF#000000##FFFFFF
##313BBA1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BE
Deuteranopia (green-blind)
#0046B8
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #313bba;
/* rgb */ color: rgb(49, 59, 186);
/* oklch */ color: oklch(43.5% 0.196 271.6);
Tailwind
colors: {
  custom: {
    50: '#7e71d0',
    500: '#313bba',
    950: '#000000',
  },
}
SCSS
$custom: #313bba;
$custom-light: #7e71d0;
$custom-dark: #000000;
JSON
{
  "hex": "#313bba",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 186
  },
  "hsl": {
    "h": 235.62,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43457,
    "c": 0.19599,
    "h": 271.6
  },
  "luminance": 0.07326
}

Semantic roles & 50–950 ramp

primary
#313BBA
secondary
#C9C37E
accent
#D646E2
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0814
muted
#7C7B82

Preview Lab

Preview with #313BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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