#38409E#38409E

#38409E is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.151 H 274.3°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#38409E
RGBrgb(56, 64, 158)
HSLhsl(235, 48%, 42%)
HSVhsv(235, 65%, 62%)
CMYKcmyk(64.6%, 59.5%, 0%, 38%)
CIE-LABlab(31.75, 27.30, -52.26)
CIE-LCHlch(31.75, 58.96, 297.59°)
OKLaboklab(42.25% 0.0113 -0.1504)
OKLCHoklch(42.25% 0.151 274.3)
XYZxyz(9.6338, 6.9754, 33.1798)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38409E #9E9638
analogous
#38739E #38409E #63389E
triadic
#38409E #9E3840 #409E38
tetradic
#38409E #9E3873 #9E9638 #389E63
square
#38409E #9E3873 #9E9638 #389E63
split-complementary
#38409E #9E6338 #739E38
monochromatic
#181B44 #282E71 #38409E #525AC2 #7F85D2

Accessibility & contrast

On white

8.77
#38409E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#38409E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38409E
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38409E#FFFFFF#000000##FFFFFF
##38409E1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#00469C
Tritanopia (blue-blind)
#005768
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #38409e;
/* rgb */ color: rgb(56, 64, 158);
/* oklch */ color: oklch(42.2% 0.151 274.3);
Tailwind
colors: {
  custom: {
    50: '#7a74bb',
    500: '#38409e',
    950: '#000000',
  },
}
SCSS
$custom: #38409e;
$custom-light: #7a74bb;
$custom-dark: #000000;
JSON
{
  "hex": "#38409e",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 158
  },
  "hsl": {
    "h": 235.294,
    "s": 47.664,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42247,
    "c": 0.15077,
    "h": 274.3
  },
  "luminance": 0.06976
}

Semantic roles & 50–950 ramp

primary
#38409E
secondary
#BBB677
accent
#CD51D7
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #38409E

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

Preview Lab → · Contrast checker → · Palette generator →

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