#38408E#38408E

#38408E is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.0% C 0.128 H 274.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#38408E
RGBrgb(56, 64, 142)
HSLhsl(234, 43%, 39%)
HSVhsv(234, 61%, 56%)
CMYKcmyk(60.6%, 54.9%, 0%, 44.3%)
CIE-LABlab(30.54, 21.61, -44.45)
CIE-LCHlch(30.54, 49.43, 295.92°)
OKLaboklab(40.97% 0.0108 -0.1274)
OKLCHoklch(40.97% 0.128 274.9)
XYZxyz(8.3452, 6.4599, 26.3931)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38408E #8E8638
analogous
#386B8E #38408E #5B388E
triadic
#38408E #8E3840 #408E38
tetradic
#38408E #8E386B #8E8638 #388E5B
square
#38408E #8E386B #8E8638 #388E5B
split-complementary
#38408E #8E5B38 #6B8E38
monochromatic
#151836 #272C62 #38408E #4B55B8 #777FC9

Accessibility & contrast

On white

9.16
#38408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#38408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38408E
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38408E#FFFFFF#000000##FFFFFF
##38408E1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4C91
Deuteranopia (green-blind)
#00448C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #38408e;
/* rgb */ color: rgb(56, 64, 142);
/* oklch */ color: oklch(41.0% 0.128 274.9);
Tailwind
colors: {
  custom: {
    50: '#7774b0',
    500: '#38408e',
    950: '#000000',
  },
}
SCSS
$custom: #38408e;
$custom-light: #7774b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38408e",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 234.419,
    "s": 43.434,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40966,
    "c": 0.12785,
    "h": 274.9
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#38408E
secondary
#B2AC6F
accent
#C755D3
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #38408E

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

Preview Lab → · Contrast checker → · Palette generator →

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