#314795#314795

#314795 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.5% C 0.131 H 268.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#314795
RGBrgb(49, 71, 149)
HSLhsl(227, 51%, 39%)
HSVhsv(227, 67%, 58%)
CMYKcmyk(67.1%, 52.3%, 0%, 41.6%)
CIE-LABlab(32.54, 18.17, -45.53)
CIE-LCHlch(32.54, 49.02, 291.76°)
OKLaboklab(42.52% -0.0034 -0.1306)
OKLCHoklch(42.52% 0.131 268.5)
XYZxyz(8.9428, 7.3285, 29.3712)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314795 #957F31
analogous
#317995 #314795 #4D3195
triadic
#314795 #953147 #479531
tetradic
#314795 #953179 #957F31 #31954D
square
#314795 #953179 #957F31 #31954D
split-complementary
#314795 #954D31 #799531
monochromatic
#131B39 #223167 #314795 #425EC1 #7085D0

Accessibility & contrast

On white

8.52
#314795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#314795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314795
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314795#FFFFFF#000000##FFFFFF
##3147951.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195198
Deuteranopia (green-blind)
#004893
Tritanopia (blue-blind)
#005967
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #314795;
/* rgb */ color: rgb(49, 71, 149);
/* oklch */ color: oklch(42.5% 0.131 268.5);
Tailwind
colors: {
  custom: {
    50: '#7579b5',
    500: '#314795',
    950: '#000000',
  },
}
SCSS
$custom: #314795;
$custom-light: #7579b5;
$custom-dark: #000000;
JSON
{
  "hex": "#314795",
  "rgb": {
    "r": 49,
    "g": 71,
    "b": 149
  },
  "hsl": {
    "h": 226.8,
    "s": 50.505,
    "l": 38.824
  },
  "oklch": {
    "l": 0.42517,
    "c": 0.13069,
    "h": 268.5
  },
  "luminance": 0.07329
}

Semantic roles & 50–950 ramp

primary
#314795
secondary
#B8A76A
accent
#BB4EDA
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #314795

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

Preview Lab → · Contrast checker → · Palette generator →

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