#38278F#38278F

#38278F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.6% C 0.162 H 282.4°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#38278F
RGBrgb(56, 39, 143)
HSLhsl(250, 57%, 36%)
HSVhsv(250, 73%, 56%)
CMYKcmyk(60.8%, 72.7%, 0%, 43.9%)
CIE-LABlab(24.56, 37.84, -54.82)
CIE-LCHlch(24.56, 66.61, 304.62°)
OKLaboklab(36.61% 0.0346 -0.1579)
OKLCHoklch(36.61% 0.162 282.4)
XYZxyz(7.3128, 4.2745, 26.4210)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38278F #7E8F27
analogous
#274A8F #38278F #6C278F
triadic
#38278F #8F3827 #278F38
tetradic
#38278F #8F274A #7E8F27 #278F6C
square
#38278F #8F274A #7E8F27 #278F6C
split-complementary
#38278F #8F6C27 #4A8F27
monochromatic
#120D2F #251A5F #38278F #4B34BF #715DD3

Accessibility & contrast

On white

11.32
#38278F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#38278F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38278F
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38278F#FFFFFF#000000##FFFFFF
##38278F1.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #38278f;
/* rgb */ color: rgb(56, 39, 143);
/* oklch */ color: oklch(36.6% 0.162 282.4);
Tailwind
colors: {
  custom: {
    50: '#7963b1',
    500: '#38278f',
    950: '#000000',
  },
}
SCSS
$custom: #38278f;
$custom-light: #7963b1;
$custom-dark: #000000;
JSON
{
  "hex": "#38278f",
  "rgb": {
    "r": 56,
    "g": 39,
    "b": 143
  },
  "hsl": {
    "h": 249.808,
    "s": 57.143,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36607,
    "c": 0.1617,
    "h": 282.4
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#38278F
secondary
#A9B85A
accent
#E047C7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #38278F

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

Preview Lab → · Contrast checker → · Palette generator →

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