#38417D#38417D

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

Color values

HEX#38417D
RGBrgb(56, 65, 125)
HSLhsl(232, 38%, 35%)
HSVhsv(232, 55%, 49%)
CMYKcmyk(55.2%, 48%, 0%, 51%)
CIE-LABlab(29.67, 14.93, -35.32)
CIE-LCHlch(29.67, 38.35, 292.92°)
OKLaboklab(39.93% 0.0079 -0.1005)
OKLCHoklch(39.93% 0.101 274.5)
XYZxyz(7.2217, 6.1015, 20.1952)
Luminance0.0610 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38417D #7D7438
analogous
#38637D #38417D #51387D
triadic
#38417D #7D3841 #417D38
tetradic
#38417D #7D3863 #7D7438 #387D51
square
#38417D #7D3863 #7D7438 #387D51
split-complementary
#38417D #7D5138 #637D38
monochromatic
#121528 #252B53 #38417D #4B57A7 #707BBF

Accessibility & contrast

On white

9.46
#38417D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38417D
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38417D#FFFFFF#000000##FFFFFF
##38417D1.009.462.229.46
#FFFFFF9.461.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26497F
Deuteranopia (green-blind)
#1E437C
Tritanopia (blue-blind)
#184E59
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #38417d;
/* rgb */ color: rgb(56, 65, 125);
/* oklch */ color: oklch(39.9% 0.101 274.5);
Tailwind
colors: {
  custom: {
    50: '#7475a3',
    500: '#38417d',
    950: '#000000',
  },
}
SCSS
$custom: #38417d;
$custom-light: #7475a3;
$custom-dark: #000000;
JSON
{
  "hex": "#38417d",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 125
  },
  "hsl": {
    "h": 232.174,
    "s": 38.122,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39933,
    "c": 0.10084,
    "h": 274.5
  },
  "luminance": 0.06102
}

Semantic roles & 50–950 ramp

primary
#38417D
secondary
#A8A069
accent
#BF5ACE
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #38417D

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

Preview Lab → · Contrast checker → · Palette generator →

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