#313FBC#313FBC

#313FBC is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.3% C 0.194 H 270.9°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#313FBC
RGBrgb(49, 63, 188)
HSLhsl(234, 59%, 46%)
HSVhsv(234, 74%, 74%)
CMYKcmyk(73.9%, 66.5%, 0%, 26.3%)
CIE-LABlab(33.64, 37.68, -67.09)
CIE-LCHlch(33.64, 76.95, 299.32°)
OKLaboklab(44.32% 0.0029 -0.194)
OKLCHoklch(44.32% 0.194 270.9)
XYZxyz(12.1181, 7.8376, 48.4413)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FBC #BCAE31
analogous
#3185BC #313FBC #6931BC
triadic
#313FBC #BC313F #3FBC31
tetradic
#313FBC #BC3185 #BCAE31 #31BC69
square
#313FBC #BC3185 #BCAE31 #31BC69
split-complementary
#313FBC #BC6931 #85BC31
monochromatic
#181E5B #242F8B #313FBC #5764D3 #8890E0

Accessibility & contrast

On white

8.18
#313FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#313FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FBC
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FBC#FFFFFF#000000##FFFFFF
##313FBC1.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313fbc;
/* rgb */ color: rgb(49, 63, 188);
/* oklch */ color: oklch(44.3% 0.194 270.9);
Tailwind
colors: {
  custom: {
    50: '#7e74d1',
    500: '#313fbc',
    950: '#000000',
  },
}
SCSS
$custom: #313fbc;
$custom-light: #7e74d1;
$custom-dark: #000000;
JSON
{
  "hex": "#313fbc",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 188
  },
  "hsl": {
    "h": 233.957,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44317,
    "c": 0.19405,
    "h": 270.9
  },
  "luminance": 0.07839
}

Semantic roles & 50–950 ramp

primary
#313FBC
secondary
#CAC27F
accent
#D246E2
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #313FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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