#38418D#38418D

#38418D is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.1% C 0.125 H 274.4°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#38418D
RGBrgb(56, 65, 141)
HSLhsl(234, 43%, 39%)
HSVhsv(234, 60%, 55%)
CMYKcmyk(60.3%, 53.9%, 0%, 44.7%)
CIE-LABlab(30.74, 20.58, -43.51)
CIE-LCHlch(30.74, 48.14, 295.32°)
OKLaboklab(41.09% 0.0097 -0.1246)
OKLCHoklch(41.09% 0.125 274.4)
XYZxyz(8.3273, 6.5438, 26.0184)
Luminance0.0654 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38418D #8D8438
analogous
#386B8D #38418D #59388D
triadic
#38418D #8D3841 #418D38
tetradic
#38418D #8D386B #8D8438 #388D59
square
#38418D #8D386B #8D8438 #388D59
split-complementary
#38418D #8D5938 #6B8D38
monochromatic
#151935 #272D61 #38418D #4B56B7 #777FC9

Accessibility & contrast

On white

9.10
#38418D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#38418D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38418D
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38418D#FFFFFF#000000##FFFFFF
##38418D1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144C90
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #38418d;
/* rgb */ color: rgb(56, 65, 141);
/* oklch */ color: oklch(41.1% 0.125 274.4);
Tailwind
colors: {
  custom: {
    50: '#7775af',
    500: '#38418d',
    950: '#000000',
  },
}
SCSS
$custom: #38418d;
$custom-light: #7775af;
$custom-dark: #000000;
JSON
{
  "hex": "#38418d",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 141
  },
  "hsl": {
    "h": 233.647,
    "s": 43.147,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41094,
    "c": 0.12499,
    "h": 274.4
  },
  "luminance": 0.06544
}

Semantic roles & 50–950 ramp

primary
#38418D
secondary
#B2AB6F
accent
#C655D3
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #38418D

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

Preview Lab → · Contrast checker → · Palette generator →

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