#313EBC#313EBC

#313EBC is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.1% C 0.195 H 271.0°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#313EBC
RGBrgb(49, 62, 188)
HSLhsl(234, 59%, 46%)
HSVhsv(234, 74%, 74%)
CMYKcmyk(73.9%, 67%, 0%, 26.3%)
CIE-LABlab(33.41, 38.30, -67.47)
CIE-LCHlch(33.41, 77.59, 299.58°)
OKLaboklab(44.15% 0.0035 -0.1951)
OKLCHoklch(44.15% 0.195 271)
XYZxyz(12.0633, 7.7278, 48.4231)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EBC #BCAF31
analogous
#3184BC #313EBC #6931BC
triadic
#313EBC #BC313E #3EBC31
tetradic
#313EBC #BC3184 #BCAF31 #31BC69
square
#313EBC #BC3184 #BCAF31 #31BC69
split-complementary
#313EBC #BC6931 #84BC31
monochromatic
#181E5B #242E8B #313EBC #5763D3 #8890E0

Accessibility & contrast

On white

8.25
#313EBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#313EBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EBC
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EBC#FFFFFF#000000##FFFFFF
##313EBC1.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#0048BA
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #313ebc;
/* rgb */ color: rgb(49, 62, 188);
/* oklch */ color: oklch(44.1% 0.195 271.0);
Tailwind
colors: {
  custom: {
    50: '#7e73d1',
    500: '#313ebc',
    950: '#000000',
  },
}
SCSS
$custom: #313ebc;
$custom-light: #7e73d1;
$custom-dark: #000000;
JSON
{
  "hex": "#313ebc",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 188
  },
  "hsl": {
    "h": 234.388,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44148,
    "c": 0.19518,
    "h": 271
  },
  "luminance": 0.07729
}

Semantic roles & 50–950 ramp

primary
#313EBC
secondary
#CAC37F
accent
#D346E2
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #313EBC

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

Preview Lab → · Contrast checker → · Palette generator →

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