#38517C#38517C

#38517C is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.5% C 0.078 H 260.8°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#38517C
RGBrgb(56, 81, 124)
HSLhsl(218, 38%, 35%)
HSVhsv(218, 55%, 49%)
CMYKcmyk(54.8%, 34.7%, 0%, 51.4%)
CIE-LABlab(34.36, 3.98, -27.27)
CIE-LCHlch(34.36, 27.56, 278.30°)
OKLaboklab(43.52% -0.0125 -0.0768)
OKLCHoklch(43.52% 0.078 260.8)
XYZxyz(8.2102, 8.1802, 20.2112)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38517C #7C6338
analogous
#38737C #38517C #41387C
triadic
#38517C #7C3851 #517C38
tetradic
#38517C #7C3873 #7C6338 #387C41
square
#38517C #7C3873 #7C6338 #387C41
split-complementary
#38517C #7C4138 #737C38
monochromatic
#121A28 #253552 #38517C #4B6DA6 #708DBE

Accessibility & contrast

On white

7.97
#38517C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#38517C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38517C
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38517C#FFFFFF#000000##FFFFFF
##38517C1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40547E
Deuteranopia (green-blind)
#384E7B
Tritanopia (blue-blind)
#155A61
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #38517c;
/* rgb */ color: rgb(56, 81, 124);
/* oklch */ color: oklch(43.5% 0.078 260.8);
Tailwind
colors: {
  custom: {
    50: '#7381a2',
    500: '#38517c',
    950: '#000000',
  },
}
SCSS
$custom: #38517c;
$custom-light: #7381a2;
$custom-dark: #000000;
JSON
{
  "hex": "#38517c",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 124
  },
  "hsl": {
    "h": 217.941,
    "s": 37.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43524,
    "c": 0.07786,
    "h": 260.8
  },
  "luminance": 0.08181
}

Semantic roles & 50–950 ramp

primary
#38517C
secondary
#A79068
accent
#A35ACE
background
#F7F7FA
surface
#EDEEF3
border
#C8C9CD
text
#080A0F
muted
#7B7C7F

Preview Lab

Preview with #38517C

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

Preview Lab → · Contrast checker → · Palette generator →

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