#313CBA#313CBA

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

Color values

HEX#313CBA
RGBrgb(49, 60, 186)
HSLhsl(235, 58%, 46%)
HSVhsv(235, 74%, 73%)
CMYKcmyk(73.7%, 67.7%, 0%, 27.1%)
CIE-LABlab(32.76, 38.84, -67.35)
CIE-LCHlch(32.76, 77.75, 299.97°)
OKLaboklab(43.62% 0.0049 -0.1948)
OKLCHoklch(43.62% 0.195 271.4)
XYZxyz(11.7424, 7.4286, 47.2599)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CBA #BAAF31
analogous
#3180BA #313CBA #6A31BA
triadic
#313CBA #BA313C #3CBA31
tetradic
#313CBA #BA3180 #BAAF31 #31BA6A
square
#313CBA #BA3180 #BAAF31 #31BA6A
split-complementary
#313CBA #BA6A31 #80BA31
monochromatic
#171D59 #242C8A #313CBA #5660D2 #868DDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##313CBA#FFFFFF#000000##FFFFFF
##313CBA1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313cba;
/* rgb */ color: rgb(49, 60, 186);
/* oklch */ color: oklch(43.6% 0.195 271.4);
Tailwind
colors: {
  custom: {
    50: '#7e72d0',
    500: '#313cba',
    950: '#000000',
  },
}
SCSS
$custom: #313cba;
$custom-light: #7e72d0;
$custom-dark: #000000;
JSON
{
  "hex": "#313cba",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 186
  },
  "hsl": {
    "h": 235.182,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.43622,
    "c": 0.19487,
    "h": 271.4
  },
  "luminance": 0.0743
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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