#38417C#38417C

#38417C is a dark, moderate blue. Relative luminance 0.061; OKLCH L 39.9% C 0.099 H 274.5°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#38417C
RGBrgb(56, 65, 124)
HSLhsl(232, 38%, 35%)
HSVhsv(232, 55%, 49%)
CMYKcmyk(54.8%, 47.6%, 0%, 51.4%)
CIE-LABlab(29.60, 14.58, -34.80)
CIE-LCHlch(29.60, 37.73, 292.74°)
OKLaboklab(39.86% 0.0078 -0.099)
OKLCHoklch(39.86% 0.099 274.5)
XYZxyz(7.1581, 6.0761, 19.8605)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38417C #7C7338
analogous
#38637C #38417C #51387C
triadic
#38417C #7C3841 #417C38
tetradic
#38417C #7C3863 #7C7338 #387C51
square
#38417C #7C3863 #7C7338 #387C51
split-complementary
#38417C #7C5138 #637C38
monochromatic
#121528 #252B52 #38417C #4B57A6 #707ABE

Accessibility & contrast

On white

9.48
#38417C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#38417C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38417C
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38417C#FFFFFF#000000##FFFFFF
##38417C1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27497E
Deuteranopia (green-blind)
#20437B
Tritanopia (blue-blind)
#194E58
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #38417c;
/* rgb */ color: rgb(56, 65, 124);
/* oklch */ color: oklch(39.9% 0.099 274.5);
Tailwind
colors: {
  custom: {
    50: '#7475a2',
    500: '#38417c',
    950: '#000000',
  },
}
SCSS
$custom: #38417c;
$custom-light: #7475a2;
$custom-dark: #000000;
JSON
{
  "hex": "#38417c",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 124
  },
  "hsl": {
    "h": 232.059,
    "s": 37.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39864,
    "c": 0.09929,
    "h": 274.5
  },
  "luminance": 0.06077
}

Semantic roles & 50–950 ramp

primary
#38417C
secondary
#A79F68
accent
#BE5ACE
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #38417C

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

Preview Lab → · Contrast checker → · Palette generator →

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