#314AA2#314AA2

#314AA2 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.1% C 0.145 H 268.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#314AA2
RGBrgb(49, 74, 162)
HSLhsl(227, 54%, 41%)
HSVhsv(227, 70%, 64%)
CMYKcmyk(69.8%, 54.3%, 0%, 36.5%)
CIE-LABlab(34.31, 21.02, -50.54)
CIE-LCHlch(34.31, 54.73, 292.58°)
OKLaboklab(44.15% -0.0051 -0.1453)
OKLCHoklch(44.15% 0.145 268)
XYZxyz(10.2347, 8.1582, 35.2107)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AA2 #A28931
analogous
#3183A2 #314AA2 #5131A2
triadic
#314AA2 #A2314A #4AA231
tetradic
#314AA2 #A23183 #A28931 #31A251
square
#314AA2 #A23183 #A28931 #31A251
split-complementary
#314AA2 #A25131 #83A231
monochromatic
#151F44 #233573 #314AA2 #4865C8 #778CD6

Accessibility & contrast

On white

7.98
#314AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#314AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314AA2
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AA2#FFFFFF#000000##FFFFFF
##314AA21.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0956A5
Deuteranopia (green-blind)
#004CA0
Tritanopia (blue-blind)
#005F6E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #314aa2;
/* rgb */ color: rgb(49, 74, 162);
/* oklch */ color: oklch(44.1% 0.145 268.0);
Tailwind
colors: {
  custom: {
    50: '#777cbe',
    500: '#314aa2',
    950: '#000000',
  },
}
SCSS
$custom: #314aa2;
$custom-light: #777cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#314aa2",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 162
  },
  "hsl": {
    "h": 226.726,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4415,
    "c": 0.14542,
    "h": 268
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#314AA2
secondary
#BEAD71
accent
#BD4BDD
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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