#38288F#38288F

#38288F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.8% C 0.161 H 282.1°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#38288F
RGBrgb(56, 40, 143)
HSLhsl(249, 56%, 36%)
HSVhsv(249, 72%, 56%)
CMYKcmyk(60.8%, 72%, 0%, 43.9%)
CIE-LABlab(24.77, 37.26, -54.47)
CIE-LCHlch(24.77, 66.00, 304.37°)
OKLaboklab(36.76% 0.0338 -0.1569)
OKLCHoklch(36.76% 0.161 282.1)
XYZxyz(7.3461, 4.3410, 26.4321)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38288F #7F8F28
analogous
#284B8F #38288F #6B288F
triadic
#38288F #8F3828 #288F38
tetradic
#38288F #8F284B #7F8F28 #288F6B
square
#38288F #8F284B #7F8F28 #288F6B
split-complementary
#38288F #8F6B28 #4B8F28
monochromatic
#130D2F #251B5F #38288F #4B35BF #715FD2

Accessibility & contrast

On white

11.24
#38288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#38288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38288F
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38288F#FFFFFF#000000##FFFFFF
##38288F1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00378D
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #38288f;
/* rgb */ color: rgb(56, 40, 143);
/* oklch */ color: oklch(36.8% 0.161 282.1);
Tailwind
colors: {
  custom: {
    50: '#7964b1',
    500: '#38288f',
    950: '#000000',
  },
}
SCSS
$custom: #38288f;
$custom-light: #7964b1;
$custom-dark: #000000;
JSON
{
  "hex": "#38288f",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 249.32,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36757,
    "c": 0.16053,
    "h": 282.1
  },
  "luminance": 0.04342
}

Semantic roles & 50–950 ramp

primary
#38288F
secondary
#A9B85B
accent
#E048C8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #38288F

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

Preview Lab → · Contrast checker → · Palette generator →

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