#38519A#38519A

#38519A is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.4% C 0.123 H 267.2°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#38519A
RGBrgb(56, 81, 154)
HSLhsl(225, 47%, 41%)
HSVhsv(225, 64%, 60%)
CMYKcmyk(63.6%, 47.4%, 0%, 39.6%)
CIE-LABlab(36.10, 14.63, -42.83)
CIE-LCHlch(36.10, 45.26, 288.86°)
OKLaboklab(45.43% -0.006 -0.1224)
OKLCHoklch(45.43% 0.123 267.2)
XYZxyz(10.4041, 9.0578, 31.7656)
Luminance0.0906 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38519A #9A8138
analogous
#38829A #38519A #50389A
triadic
#38519A #9A3851 #519A38
tetradic
#38519A #9A3882 #9A8138 #389A50
square
#38519A #9A3882 #9A8138 #389A50
split-complementary
#38519A #9A5038 #829A38
monochromatic
#172240 #28396D #38519A #506CBF #7D92D0

Accessibility & contrast

On white

7.47
#38519A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#38519A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38519A
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38519A#FFFFFF#000000##FFFFFF
##38519A1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5A9D
Deuteranopia (green-blind)
#1C5198
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #38519a;
/* rgb */ color: rgb(56, 81, 154);
/* oklch */ color: oklch(45.4% 0.123 267.2);
Tailwind
colors: {
  custom: {
    50: '#7881b8',
    500: '#38519a',
    950: '#000000',
  },
}
SCSS
$custom: #38519a;
$custom-light: #7881b8;
$custom-dark: #000000;
JSON
{
  "hex": "#38519a",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 154
  },
  "hsl": {
    "h": 224.694,
    "s": 46.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45431,
    "c": 0.12253,
    "h": 267.2
  },
  "luminance": 0.09059
}

Semantic roles & 50–950 ramp

primary
#38519A
secondary
#B9A875
accent
#B451D6
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A11
muted
#7C7C80

Preview Lab

Preview with #38519A

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

Preview Lab → · Contrast checker → · Palette generator →

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