#314BA6#314BA6

#314BA6 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.7% C 0.150 H 267.8°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#314BA6
RGBrgb(49, 75, 166)
HSLhsl(227, 54%, 42%)
HSVhsv(227, 70%, 65%)
CMYKcmyk(70.5%, 54.8%, 0%, 34.9%)
CIE-LABlab(34.88, 21.85, -52.02)
CIE-LCHlch(34.88, 56.42, 292.79°)
OKLaboklab(44.67% -0.0057 -0.1497)
OKLCHoklch(44.67% 0.15 267.8)
XYZxyz(10.6633, 8.4372, 37.1356)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314BA6 #A68C31
analogous
#3185A6 #314BA6 #5231A6
triadic
#314BA6 #A6314B #4BA631
tetradic
#314BA6 #A63185 #A68C31 #31A652
square
#314BA6 #A63185 #A68C31 #31A652
split-complementary
#314BA6 #A65231 #85A631
monochromatic
#152047 #233677 #314BA6 #4A67CA #7A8FD8

Accessibility & contrast

On white

7.81
#314BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#314BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314BA6
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314BA6#FFFFFF#000000##FFFFFF
##314BA61.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0258A9
Deuteranopia (green-blind)
#004DA4
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314ba6;
/* rgb */ color: rgb(49, 75, 166);
/* oklch */ color: oklch(44.7% 0.150 267.8);
Tailwind
colors: {
  custom: {
    50: '#787cc1',
    500: '#314ba6',
    950: '#000000',
  },
}
SCSS
$custom: #314ba6;
$custom-light: #787cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#314ba6",
  "rgb": {
    "r": 49,
    "g": 75,
    "b": 166
  },
  "hsl": {
    "h": 226.667,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4467,
    "c": 0.14978,
    "h": 267.8
  },
  "luminance": 0.08438
}

Semantic roles & 50–950 ramp

primary
#314BA6
secondary
#C0AF73
accent
#BD4ADE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314BA6

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

Preview Lab → · Contrast checker → · Palette generator →

#314BA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva