#314271#314271

#314271 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 38.9% C 0.083 H 267.5°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#314271
RGBrgb(49, 66, 113)
HSLhsl(224, 40%, 32%)
HSVhsv(224, 57%, 44%)
CMYKcmyk(56.6%, 41.6%, 0%, 55.7%)
CIE-LABlab(28.75, 8.33, -29.26)
CIE-LCHlch(28.75, 30.42, 285.89°)
OKLaboklab(38.87% -0.0037 -0.0829)
OKLCHoklch(38.87% 0.083 267.5)
XYZxyz(6.1945, 5.7412, 16.4013)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#314271 #716031
analogous
#316271 #314271 #403171
triadic
#314271 #713142 #427131
tetradic
#314271 #713162 #716031 #317140
square
#314271 #713162 #716031 #317140
split-complementary
#314271 #714031 #627131
monochromatic
#0C101C #1E2946 #314271 #445B9C #6279BB

Accessibility & contrast

On white

9.77
#314271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#314271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #314271
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##314271#FFFFFF#000000##FFFFFF
##3142711.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4773
Deuteranopia (green-blind)
#274170
Tritanopia (blue-blind)
#0F4C54
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #314271;
/* rgb */ color: rgb(49, 66, 113);
/* oklch */ color: oklch(38.9% 0.083 267.5);
Tailwind
colors: {
  custom: {
    50: '#6e769a',
    500: '#314271',
    950: '#000000',
  },
}
SCSS
$custom: #314271;
$custom-light: #6e769a;
$custom-dark: #000000;
JSON
{
  "hex": "#314271",
  "rgb": {
    "r": 49,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 224.063,
    "s": 39.506,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38867,
    "c": 0.083,
    "h": 267.5
  },
  "luminance": 0.05742
}

Semantic roles & 50–950 ramp

primary
#314271
secondary
#A28F5C
accent
#B058CF
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #314271

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

Preview Lab → · Contrast checker → · Palette generator →

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