#38288D#38288D

#38288D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.158 H 282.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#38288D
RGBrgb(56, 40, 141)
HSLhsl(250, 56%, 35%)
HSVhsv(250, 72%, 55%)
CMYKcmyk(60.3%, 71.6%, 0%, 44.7%)
CIE-LABlab(24.58, 36.61, -53.54)
CIE-LCHlch(24.58, 64.86, 304.36°)
OKLaboklab(36.56% 0.0342 -0.1542)
OKLCHoklch(36.56% 0.158 282.5)
XYZxyz(7.1959, 4.2809, 25.6413)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38288D #7D8D28
analogous
#284A8D #38288D #6A288D
triadic
#38288D #8D3828 #288D38
tetradic
#38288D #8D284A #7D8D28 #288D6A
square
#38288D #8D284A #7D8D28 #288D6A
split-complementary
#38288D #8D6A28 #4A8D28
monochromatic
#120D2E #251A5D #38288D #4B36BD #705ED1

Accessibility & contrast

On white

11.31
#38288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#38288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38288D
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38288D#FFFFFF#000000##FFFFFF
##38288D1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00378B
Tritanopia (blue-blind)
#014357
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #38288d;
/* rgb */ color: rgb(56, 40, 141);
/* oklch */ color: oklch(36.6% 0.158 282.5);
Tailwind
colors: {
  custom: {
    50: '#7963af',
    500: '#38288d',
    950: '#000000',
  },
}
SCSS
$custom: #38288d;
$custom-light: #7963af;
$custom-dark: #000000;
JSON
{
  "hex": "#38288d",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 249.505,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36564,
    "c": 0.15796,
    "h": 282.5
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#38288D
secondary
#A8B75A
accent
#DF49C7
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #38288D

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

Preview Lab → · Contrast checker → · Palette generator →

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