#38288A#38288A

#38288A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.154 H 283.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#38288A
RGBrgb(56, 40, 138)
HSLhsl(250, 55%, 35%)
HSVhsv(250, 71%, 54%)
CMYKcmyk(59.4%, 71%, 0%, 45.9%)
CIE-LABlab(24.30, 35.64, -52.13)
CIE-LCHlch(24.30, 63.15, 304.36°)
OKLaboklab(36.28% 0.0347 -0.1501)
OKLCHoklch(36.28% 0.154 283)
XYZxyz(6.9757, 4.1929, 24.4815)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38288A #7A8A28
analogous
#28498A #38288A #69288A
triadic
#38288A #8A3828 #288A38
tetradic
#38288A #8A2849 #7A8A28 #288A69
square
#38288A #8A2849 #7A8A28 #288A69
split-complementary
#38288A #8A6928 #498A28
monochromatic
#110C2B #251A5B #38288A #4B36B9 #6F5DD0

Accessibility & contrast

On white

11.42
#38288A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#38288A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38288A
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38288A#FFFFFF#000000##FFFFFF
##38288A1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#094256
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #38288a;
/* rgb */ color: rgb(56, 40, 138);
/* oklch */ color: oklch(36.3% 0.154 283.0);
Tailwind
colors: {
  custom: {
    50: '#7863ad',
    500: '#38288a',
    950: '#000000',
  },
}
SCSS
$custom: #38288a;
$custom-light: #7863ad;
$custom-dark: #000000;
JSON
{
  "hex": "#38288a",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 138
  },
  "hsl": {
    "h": 249.796,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36277,
    "c": 0.15405,
    "h": 283
  },
  "luminance": 0.04193
}

Semantic roles & 50–950 ramp

primary
#38288A
secondary
#A6B559
accent
#DE49C6
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #38288A

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

Preview Lab → · Contrast checker → · Palette generator →

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