#314F7A#314F7A

#314F7A is a dark, moderate blue. Relative luminance 0.076; OKLCH L 42.5% C 0.080 H 257.4°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#314F7A
RGBrgb(49, 79, 122)
HSLhsl(215, 43%, 34%)
HSVhsv(215, 60%, 48%)
CMYKcmyk(59.8%, 35.2%, 0%, 52.2%)
CIE-LABlab(33.24, 2.91, -27.81)
CIE-LCHlch(33.24, 27.96, 275.98°)
OKLaboklab(42.52% -0.0175 -0.0786)
OKLCHoklch(42.52% 0.08 257.4)
XYZxyz(7.5742, 7.6494, 19.4859)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314F7A #7A5C31
analogous
#31737A #314F7A #37317A
triadic
#314F7A #7A314F #4F7A31
tetradic
#314F7A #7A3173 #7A5C31 #317A37
square
#314F7A #7A3173 #7A5C31 #317A37
split-complementary
#314F7A #7A3731 #737A31
monochromatic
#0E1623 #1F334E #314F7A #436BA6 #648AC1

Accessibility & contrast

On white

8.30
#314F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#314F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314F7A
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314F7A#FFFFFF#000000##FFFFFF
##314F7A1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D527C
Deuteranopia (green-blind)
#344B79
Tritanopia (blue-blind)
#00595F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #314f7a;
/* rgb */ color: rgb(49, 79, 122);
/* oklch */ color: oklch(42.5% 0.080 257.4);
Tailwind
colors: {
  custom: {
    50: '#6f80a0',
    500: '#314f7a',
    950: '#000000',
  },
}
SCSS
$custom: #314f7a;
$custom-light: #6f80a0;
$custom-dark: #000000;
JSON
{
  "hex": "#314f7a",
  "rgb": {
    "r": 49,
    "g": 79,
    "b": 122
  },
  "hsl": {
    "h": 215.342,
    "s": 42.69,
    "l": 33.529
  },
  "oklch": {
    "l": 0.42515,
    "c": 0.08049,
    "h": 257.4
  },
  "luminance": 0.0765
}

Semantic roles & 50–950 ramp

primary
#314F7A
secondary
#A88A5E
accent
#9F55D2
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0F
muted
#7B7C7E

Preview Lab

Preview with #314F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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