#38517A#38517A

#38517A is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.4% C 0.075 H 259.9°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#38517A
RGBrgb(56, 81, 122)
HSLhsl(217, 37%, 35%)
HSVhsv(217, 54%, 48%)
CMYKcmyk(54.1%, 33.6%, 0%, 52.2%)
CIE-LABlab(34.25, 3.29, -26.19)
CIE-LCHlch(34.25, 26.40, 277.16°)
OKLaboklab(43.41% -0.0131 -0.0737)
OKLCHoklch(43.41% 0.075 259.9)
XYZxyz(8.0850, 8.1302, 19.5518)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38517A #7A6138
analogous
#38727A #38517A #40387A
triadic
#38517A #7A3851 #517A38
tetradic
#38517A #7A3872 #7A6138 #387A40
square
#38517A #7A3872 #7A6138 #387A40
split-complementary
#38517A #7A4038 #727A38
monochromatic
#111926 #253550 #38517A #4B6DA4 #6F8DBD

Accessibility & contrast

On white

8.00
#38517A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#38517A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38517A
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38517A#FFFFFF#000000##FFFFFF
##38517A1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#41547C
Deuteranopia (green-blind)
#394E79
Tritanopia (blue-blind)
#175A60
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #38517a;
/* rgb */ color: rgb(56, 81, 122);
/* oklch */ color: oklch(43.4% 0.075 259.9);
Tailwind
colors: {
  custom: {
    50: '#7381a0',
    500: '#38517a',
    950: '#000000',
  },
}
SCSS
$custom: #38517a;
$custom-light: #7381a0;
$custom-dark: #000000;
JSON
{
  "hex": "#38517a",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 122
  },
  "hsl": {
    "h": 217.273,
    "s": 37.079,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4341,
    "c": 0.07487,
    "h": 259.9
  },
  "luminance": 0.08131
}

Semantic roles & 50–950 ramp

primary
#38517A
secondary
#A68E68
accent
#A25BCD
background
#F7F7F9
surface
#EDEEF2
border
#C8C9CC
text
#080A0F
muted
#7B7C7E

Preview Lab

Preview with #38517A

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

Preview Lab → · Contrast checker → · Palette generator →

#38517A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva