#314AA8#314AA8

#314AA8 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.6% C 0.154 H 268.3°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#314AA8
RGBrgb(49, 74, 168)
HSLhsl(227, 55%, 43%)
HSVhsv(227, 71%, 66%)
CMYKcmyk(70.8%, 56%, 0%, 34.1%)
CIE-LABlab(34.76, 23.26, -53.41)
CIE-LCHlch(34.76, 58.26, 293.53°)
OKLaboklab(44.63% -0.0047 -0.1538)
OKLCHoklch(44.63% 0.154 268.3)
XYZxyz(10.7808, 8.3766, 38.0869)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314AA8 #A88F31
analogous
#3185A8 #314AA8 #5331A8
triadic
#314AA8 #A8314A #4AA831
tetradic
#314AA8 #A83185 #A88F31 #31A853
square
#314AA8 #A83185 #A88F31 #31A853
split-complementary
#314AA8 #A85331 #85A831
monochromatic
#152049 #233579 #314AA8 #4C66CB #7B8FD8

Accessibility & contrast

On white

7.85
#314AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#314AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314AA8
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314AA8#FFFFFF#000000##FFFFFF
##314AA81.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AB
Deuteranopia (green-blind)
#004CA6
Tritanopia (blue-blind)
#006171
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #314aa8;
/* rgb */ color: rgb(49, 74, 168);
/* oklch */ color: oklch(44.6% 0.154 268.3);
Tailwind
colors: {
  custom: {
    50: '#797cc3',
    500: '#314aa8',
    950: '#000000',
  },
}
SCSS
$custom: #314aa8;
$custom-light: #797cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#314aa8",
  "rgb": {
    "r": 49,
    "g": 74,
    "b": 168
  },
  "hsl": {
    "h": 227.395,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44626,
    "c": 0.15385,
    "h": 268.3
  },
  "luminance": 0.08378
}

Semantic roles & 50–950 ramp

primary
#314AA8
secondary
#C1B174
accent
#BF4ADE
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #314AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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