#38407B#38407B

#38407B is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.6% C 0.099 H 275.1°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#38407B
RGBrgb(56, 64, 123)
HSLhsl(233, 37%, 35%)
HSVhsv(233, 54%, 48%)
CMYKcmyk(54.5%, 48%, 0%, 51.8%)
CIE-LABlab(29.25, 14.91, -34.73)
CIE-LCHlch(29.25, 37.79, 293.23°)
OKLaboklab(39.58% 0.0088 -0.0988)
OKLCHoklch(39.58% 0.099 275.1)
XYZxyz(7.0383, 5.9372, 19.5102)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38407B #7B7338
analogous
#38617B #38407B #52387B
triadic
#38407B #7B3840 #407B38
tetradic
#38407B #7B3861 #7B7338 #387B52
square
#38407B #7B3861 #7B7338 #387B52
split-complementary
#38407B #7B5238 #617B38
monochromatic
#121427 #252A51 #38407B #4B56A5 #7079BE

Accessibility & contrast

On white

9.60
#38407B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#38407B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38407B
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38407B#FFFFFF#000000##FFFFFF
##38407B1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26487D
Deuteranopia (green-blind)
#1F427A
Tritanopia (blue-blind)
#1A4D57
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #38407b;
/* rgb */ color: rgb(56, 64, 123);
/* oklch */ color: oklch(39.6% 0.099 275.1);
Tailwind
colors: {
  custom: {
    50: '#7474a1',
    500: '#38407b',
    950: '#000000',
  },
}
SCSS
$custom: #38407b;
$custom-light: #7474a1;
$custom-dark: #000000;
JSON
{
  "hex": "#38407b",
  "rgb": {
    "r": 56,
    "g": 64,
    "b": 123
  },
  "hsl": {
    "h": 232.836,
    "s": 37.43,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39577,
    "c": 0.0992,
    "h": 275.1
  },
  "luminance": 0.05938
}

Semantic roles & 50–950 ramp

primary
#38407B
secondary
#A79F68
accent
#C05ACD
background
#F7F7FA
surface
#EDEDF3
border
#C8C8CD
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #38407B

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

Preview Lab → · Contrast checker → · Palette generator →

#38407B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva