#38288C#38288C

#38288C is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.157 H 282.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#38288C
RGBrgb(56, 40, 140)
HSLhsl(250, 56%, 35%)
HSVhsv(250, 71%, 55%)
CMYKcmyk(60%, 71.4%, 0%, 45.1%)
CIE-LABlab(24.49, 36.29, -53.07)
CIE-LCHlch(24.49, 64.29, 304.36°)
OKLaboklab(36.47% 0.0344 -0.1529)
OKLCHoklch(36.47% 0.157 282.7)
XYZxyz(7.1218, 4.2513, 25.2512)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38288C #7C8C28
analogous
#284A8C #38288C #6A288C
triadic
#38288C #8C3828 #288C38
tetradic
#38288C #8C284A #7C8C28 #288C6A
square
#38288C #8C284A #7C8C28 #288C6A
split-complementary
#38288C #8C6A28 #4A8C28
monochromatic
#120D2D #251A5C #38288C #4B36BC #705ED1

Accessibility & contrast

On white

11.35
#38288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#38288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38288C
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38288C#FFFFFF#000000##FFFFFF
##38288C1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#044357
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #38288c;
/* rgb */ color: rgb(56, 40, 140);
/* oklch */ color: oklch(36.5% 0.157 282.7);
Tailwind
colors: {
  custom: {
    50: '#7963af',
    500: '#38288c',
    950: '#000000',
  },
}
SCSS
$custom: #38288c;
$custom-light: #7963af;
$custom-dark: #000000;
JSON
{
  "hex": "#38288c",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 249.6,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36468,
    "c": 0.15666,
    "h": 282.7
  },
  "luminance": 0.04252
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #38288C

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

Preview Lab → · Contrast checker → · Palette generator →

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