#394872#394872

#394872 is a dark, moderate blue. Relative luminance 0.067; OKLCH L 40.9% C 0.073 H 268.1°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#394872
RGBrgb(57, 72, 114)
HSLhsl(224, 33%, 34%)
HSVhsv(224, 50%, 45%)
CMYKcmyk(50%, 36.8%, 0%, 55.3%)
CIE-LABlab(31.16, 6.72, -26.05)
CIE-LCHlch(31.16, 26.91, 284.47°)
OKLaboklab(40.89% -0.0024 -0.0733)
OKLCHoklch(40.89% 0.073 268.1)
XYZxyz(7.0410, 6.7191, 16.8422)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#394872 #726339
analogous
#396472 #394872 #463972
triadic
#394872 #723948 #487239
tetradic
#394872 #723964 #726339 #397246
square
#394872 #723964 #726339 #397246
split-complementary
#394872 #724639 #647239
monochromatic
#101420 #252E49 #394872 #4D629B #6F82B7

Accessibility & contrast

On white

8.96
#394872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #394872
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##394872#FFFFFF#000000##FFFFFF
##3948721.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#384C74
Deuteranopia (green-blind)
#324771
Tritanopia (blue-blind)
#225157
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #394872;
/* rgb */ color: rgb(57, 72, 114);
/* oklch */ color: oklch(40.9% 0.073 268.1);
Tailwind
colors: {
  custom: {
    50: '#737a9b',
    500: '#394872',
    950: '#000000',
  },
}
SCSS
$custom: #394872;
$custom-light: #737a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#394872",
  "rgb": {
    "r": 57,
    "g": 72,
    "b": 114
  },
  "hsl": {
    "h": 224.211,
    "s": 33.333,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40886,
    "c": 0.07339,
    "h": 268.1
  },
  "luminance": 0.06719
}

Semantic roles & 50–950 ramp

primary
#394872
secondary
#A09167
accent
#AD5EC9
background
#F7F7F9
surface
#EDEDF2
border
#C8C8CC
text
#08090E
muted
#7B7B7E

Preview Lab

Preview with #394872

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

Preview Lab → · Contrast checker → · Palette generator →

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