#314498#314498

#314498 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.1% C 0.139 H 269.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#314498
RGBrgb(49, 68, 152)
HSLhsl(229, 51%, 39%)
HSVhsv(229, 68%, 60%)
CMYKcmyk(67.8%, 55.3%, 0%, 40.4%)
CIE-LABlab(31.93, 21.30, -48.35)
CIE-LCHlch(31.93, 52.84, 293.78°)
OKLaboklab(42.12% -0.0003 -0.139)
OKLCHoklch(42.12% 0.139 269.9)
XYZxyz(8.9993, 7.0534, 30.5869)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314498 #988531
analogous
#317898 #314498 #523198
triadic
#314498 #983144 #449831
tetradic
#314498 #983178 #988531 #319852
square
#314498 #983178 #988531 #319852
split-complementary
#314498 #985231 #789831
monochromatic
#131B3B #222F6A #314498 #445BC3 #7284D2

Accessibility & contrast

On white

8.71
#314498 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#314498 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314498
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314498#FFFFFF#000000##FFFFFF
##3144981.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04509B
Deuteranopia (green-blind)
#004796
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #314498;
/* rgb */ color: rgb(49, 68, 152);
/* oklch */ color: oklch(42.1% 0.139 269.9);
Tailwind
colors: {
  custom: {
    50: '#7577b7',
    500: '#314498',
    950: '#000000',
  },
}
SCSS
$custom: #314498;
$custom-light: #7577b7;
$custom-dark: #000000;
JSON
{
  "hex": "#314498",
  "rgb": {
    "r": 49,
    "g": 68,
    "b": 152
  },
  "hsl": {
    "h": 228.932,
    "s": 51.244,
    "l": 39.412
  },
  "oklch": {
    "l": 0.42122,
    "c": 0.13898,
    "h": 269.9
  },
  "luminance": 0.07054
}

Semantic roles & 50–950 ramp

primary
#314498
secondary
#B9AB6B
accent
#C14DDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #314498

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

Preview Lab → · Contrast checker → · Palette generator →

#314498 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva