#313EBB#313EBB

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

Color values

HEX#313EBB
RGBrgb(49, 62, 187)
HSLhsl(234, 58%, 46%)
HSVhsv(234, 74%, 73%)
CMYKcmyk(73.8%, 66.8%, 0%, 26.7%)
CIE-LABlab(33.32, 37.95, -67.03)
CIE-LCHlch(33.32, 77.03, 299.51°)
OKLaboklab(44.05% 0.0036 -0.1939)
OKLCHoklch(44.05% 0.194 271.1)
XYZxyz(11.9558, 7.6848, 47.8573)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EBB #BBAE31
analogous
#3183BB #313EBB #6931BB
triadic
#313EBB #BB313E #3EBB31
tetradic
#313EBB #BB3183 #BBAE31 #31BB69
square
#313EBB #BB3183 #BBAE31 #31BB69
split-complementary
#313EBB #BB6931 #83BB31
monochromatic
#181E5A #242E8B #313EBB #5662D3 #878FE0

Accessibility & contrast

On white

8.28
#313EBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#313EBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EBB
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EBB#FFFFFF#000000##FFFFFF
##313EBB1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#0048B9
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #313ebb;
/* rgb */ color: rgb(49, 62, 187);
/* oklch */ color: oklch(44.1% 0.194 271.1);
Tailwind
colors: {
  custom: {
    50: '#7e73d1',
    500: '#313ebb',
    950: '#000000',
  },
}
SCSS
$custom: #313ebb;
$custom-light: #7e73d1;
$custom-dark: #000000;
JSON
{
  "hex": "#313ebb",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 187
  },
  "hsl": {
    "h": 234.348,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44053,
    "c": 0.1939,
    "h": 271.1
  },
  "luminance": 0.07686
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313EBB

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

Preview Lab → · Contrast checker → · Palette generator →

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