#314EA2#314EA2

#314EA2 is a dark, vivid blue. Relative luminance 0.087; OKLCH L 45.0% C 0.140 H 266.4°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#314EA2
RGBrgb(49, 78, 162)
HSLhsl(225, 54%, 41%)
HSVhsv(225, 70%, 64%)
CMYKcmyk(69.8%, 51.9%, 0%, 36.5%)
CIE-LABlab(35.42, 18.36, -48.74)
CIE-LCHlch(35.42, 52.09, 290.64°)
OKLaboklab(44.99% -0.0087 -0.14)
OKLCHoklch(44.99% 0.14 266.4)
XYZxyz(10.5103, 8.7093, 35.3026)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314EA2 #A28531
analogous
#3187A2 #314EA2 #4D31A2
triadic
#314EA2 #A2314E #4EA231
tetradic
#314EA2 #A23187 #A28531 #31A24D
square
#314EA2 #A23187 #A28531 #31A24D
split-complementary
#314EA2 #A24D31 #87A231
monochromatic
#152144 #233773 #314EA2 #4869C8 #7790D6

Accessibility & contrast

On white

7.66
#314EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#314EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314EA2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314EA2#FFFFFF#000000##FFFFFF
##314EA21.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B59A5
Deuteranopia (green-blind)
#004EA0
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #314ea2;
/* rgb */ color: rgb(49, 78, 162);
/* oklch */ color: oklch(45.0% 0.140 266.4);
Tailwind
colors: {
  custom: {
    50: '#777fbe',
    500: '#314ea2',
    950: '#000000',
  },
}
SCSS
$custom: #314ea2;
$custom-light: #777fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#314ea2",
  "rgb": {
    "r": 49,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 224.602,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.44988,
    "c": 0.14026,
    "h": 266.4
  },
  "luminance": 0.0871
}

Semantic roles & 50–950 ramp

primary
#314EA2
secondary
#BEAA71
accent
#B74BDD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #314EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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