#313EBF#313EBF

#313EBF is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.199 H 270.9°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#313EBF
RGBrgb(49, 62, 191)
HSLhsl(235, 59%, 47%)
HSVhsv(235, 74%, 75%)
CMYKcmyk(74.3%, 67.5%, 0%, 25.1%)
CIE-LABlab(33.69, 39.36, -68.78)
CIE-LCHlch(33.69, 79.25, 299.78°)
OKLaboklab(44.43% 0.0033 -0.199)
OKLCHoklch(44.43% 0.199 270.9)
XYZxyz(12.3900, 7.8585, 50.1440)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EBF #BFB231
analogous
#3185BF #313EBF #6B31BF
triadic
#313EBF #BF313E #3EBF31
tetradic
#313EBF #BF3185 #BFB231 #31BF6B
square
#313EBF #BF3185 #BFB231 #31BF6B
split-complementary
#313EBF #BF6B31 #85BF31
monochromatic
#181E5E #252E8E #313EBF #5964D4 #8A92E1

Accessibility & contrast

On white

8.16
#313EBF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313EBF
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EBF#FFFFFF#000000##FFFFFF
##313EBF1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#0048BD
Tritanopia (blue-blind)
#006179
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #313ebf;
/* rgb */ color: rgb(49, 62, 191);
/* oklch */ color: oklch(44.4% 0.199 270.9);
Tailwind
colors: {
  custom: {
    50: '#7f73d3',
    500: '#313ebf',
    950: '#000000',
  },
}
SCSS
$custom: #313ebf;
$custom-light: #7f73d3;
$custom-dark: #000000;
JSON
{
  "hex": "#313ebf",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 191
  },
  "hsl": {
    "h": 234.507,
    "s": 59.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44433,
    "c": 0.19901,
    "h": 270.9
  },
  "luminance": 0.0786
}

Semantic roles & 50–950 ramp

primary
#313EBF
secondary
#CBC481
accent
#D445E2
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #313EBF

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

Preview Lab → · Contrast checker → · Palette generator →

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