#38417E#38417E

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

Color values

HEX#38417E
RGBrgb(56, 65, 126)
HSLhsl(232, 38%, 36%)
HSVhsv(232, 56%, 49%)
CMYKcmyk(55.6%, 48.4%, 0%, 50.6%)
CIE-LABlab(29.73, 15.28, -35.84)
CIE-LCHlch(29.73, 38.97, 293.09°)
OKLaboklab(40% 0.0081 -0.1021)
OKLCHoklch(40% 0.102 274.5)
XYZxyz(7.2859, 6.1272, 20.5334)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38417E #7E7538
analogous
#38647E #38417E #52387E
triadic
#38417E #7E3841 #417E38
tetradic
#38417E #7E3864 #7E7538 #387E52
square
#38417E #7E3864 #7E7538 #387E52
split-complementary
#38417E #7E5238 #647E38
monochromatic
#121529 #252B54 #38417E #4B57A8 #717BC0

Accessibility & contrast

On white

9.44
#38417E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#38417E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38417E
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38417E#FFFFFF#000000##FFFFFF
##38417E1.009.442.239.44
#FFFFFF9.441.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254980
Deuteranopia (green-blind)
#1D437D
Tritanopia (blue-blind)
#174E59
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #38417e;
/* rgb */ color: rgb(56, 65, 126);
/* oklch */ color: oklch(40.0% 0.102 274.5);
Tailwind
colors: {
  custom: {
    50: '#7475a4',
    500: '#38417e',
    950: '#000000',
  },
}
SCSS
$custom: #38417e;
$custom-light: #7475a4;
$custom-dark: #000000;
JSON
{
  "hex": "#38417e",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 126
  },
  "hsl": {
    "h": 232.286,
    "s": 38.462,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40002,
    "c": 0.10239,
    "h": 274.5
  },
  "luminance": 0.06128
}

Semantic roles & 50–950 ramp

primary
#38417E
secondary
#A9A169
accent
#BF59CE
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #38417E

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

Preview Lab → · Contrast checker → · Palette generator →

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