#38418B#38418B

#38418B is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.9% C 0.122 H 274.5°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#38418B
RGBrgb(56, 65, 139)
HSLhsl(233, 43%, 38%)
HSVhsv(233, 60%, 55%)
CMYKcmyk(59.7%, 53.2%, 0%, 45.5%)
CIE-LABlab(30.60, 19.87, -42.51)
CIE-LCHlch(30.60, 46.93, 295.06°)
OKLaboklab(40.94% 0.0095 -0.1217)
OKLCHoklch(40.94% 0.122 274.5)
XYZxyz(8.1799, 6.4848, 25.2417)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38418B #8B8238
analogous
#386A8B #38418B #58388B
triadic
#38418B #8B3841 #418B38
tetradic
#38418B #8B386A #8B8238 #388B58
square
#38418B #8B386A #8B8238 #388B58
split-complementary
#38418B #8B5838 #6A8B38
monochromatic
#151834 #262D5F #38418B #4A56B6 #767FC8

Accessibility & contrast

On white

9.14
#38418B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#38418B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38418B
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38418B#FFFFFF#000000##FFFFFF
##38418B1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174C8E
Deuteranopia (green-blind)
#044589
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #38418b;
/* rgb */ color: rgb(56, 65, 139);
/* oklch */ color: oklch(40.9% 0.122 274.5);
Tailwind
colors: {
  custom: {
    50: '#7775ad',
    500: '#38418b',
    950: '#000000',
  },
}
SCSS
$custom: #38418b;
$custom-light: #7775ad;
$custom-dark: #000000;
JSON
{
  "hex": "#38418b",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 139
  },
  "hsl": {
    "h": 233.494,
    "s": 42.564,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40943,
    "c": 0.12203,
    "h": 274.5
  },
  "luminance": 0.06485
}

Semantic roles & 50–950 ramp

primary
#38418B
secondary
#B1A96E
accent
#C555D2
background
#F7F7FA
surface
#EEEDF4
border
#C9C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #38418B

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

Preview Lab → · Contrast checker → · Palette generator →

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