#38288E#38288E

#38288E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.159 H 282.3°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#38288E
RGBrgb(56, 40, 142)
HSLhsl(249, 56%, 36%)
HSVhsv(249, 72%, 56%)
CMYKcmyk(60.6%, 71.8%, 0%, 44.3%)
CIE-LABlab(24.67, 36.93, -54.01)
CIE-LCHlch(24.67, 65.43, 304.37°)
OKLaboklab(36.66% 0.034 -0.1556)
OKLCHoklch(36.66% 0.159 282.3)
XYZxyz(7.2706, 4.3108, 26.0349)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38288E #7E8E28
analogous
#284B8E #38288E #6B288E
triadic
#38288E #8E3828 #288E38
tetradic
#38288E #8E284B #7E8E28 #288E6B
square
#38288E #8E284B #7E8E28 #288E6B
split-complementary
#38288E #8E6B28 #4B8E28
monochromatic
#120D2F #251B5E #38288E #4B35BE #715FD2

Accessibility & contrast

On white

11.28
#38288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38288E
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38288E#FFFFFF#000000##FFFFFF
##38288E1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38288e;
/* rgb */ color: rgb(56, 40, 142);
/* oklch */ color: oklch(36.7% 0.159 282.3);
Tailwind
colors: {
  custom: {
    50: '#7964b0',
    500: '#38288e',
    950: '#000000',
  },
}
SCSS
$custom: #38288e;
$custom-light: #7964b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38288e",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 249.412,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.3666,
    "c": 0.15925,
    "h": 282.3
  },
  "luminance": 0.04311
}

Semantic roles & 50–950 ramp

primary
#38288E
secondary
#A9B75B
accent
#DF48C8
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #38288E

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

Preview Lab → · Contrast checker → · Palette generator →

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