#394871#394871

#394871 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.8% C 0.072 H 267.9°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#394871
RGBrgb(57, 72, 113)
HSLhsl(224, 33%, 33%)
HSVhsv(224, 50%, 44%)
CMYKcmyk(49.6%, 36.3%, 0%, 55.7%)
CIE-LABlab(31.11, 6.39, -25.51)
CIE-LCHlch(31.11, 26.29, 284.06°)
OKLaboklab(40.83% -0.0026 -0.0718)
OKLCHoklch(40.83% 0.072 267.9)
XYZxyz(6.9844, 6.6964, 16.5441)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394871 #716239
analogous
#396471 #394871 #463971
triadic
#394871 #713948 #487139
tetradic
#394871 #713964 #716239 #397146
square
#394871 #713964 #716239 #397146
split-complementary
#394871 #714639 #647139
monochromatic
#101420 #242E48 #394871 #4E629A #6E82B6

Accessibility & contrast

On white

8.98
#394871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#394871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #394871
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394871#FFFFFF#000000##FFFFFF
##3948711.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#394C73
Deuteranopia (green-blind)
#334770
Tritanopia (blue-blind)
#235157
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #394871;
/* rgb */ color: rgb(57, 72, 113);
/* oklch */ color: oklch(40.8% 0.072 267.9);
Tailwind
colors: {
  custom: {
    50: '#737a9a',
    500: '#394871',
    950: '#000000',
  },
}
SCSS
$custom: #394871;
$custom-light: #737a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#394871",
  "rgb": {
    "r": 57,
    "g": 72,
    "b": 113
  },
  "hsl": {
    "h": 223.929,
    "s": 32.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.40828,
    "c": 0.07181,
    "h": 267.9
  },
  "luminance": 0.06697
}

Semantic roles & 50–950 ramp

primary
#394871
secondary
#A09066
accent
#AD5FC9
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #394871

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

Preview Lab → · Contrast checker → · Palette generator →

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