#38519F#38519F

#38519F is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.8% C 0.130 H 267.7°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#38519F
RGBrgb(56, 81, 159)
HSLhsl(225, 48%, 42%)
HSVhsv(225, 65%, 62%)
CMYKcmyk(64.8%, 49.1%, 0%, 37.6%)
CIE-LABlab(36.42, 16.45, -45.31)
CIE-LCHlch(36.42, 48.21, 289.95°)
OKLaboklab(45.78% -0.0052 -0.1297)
OKLCHoklch(45.78% 0.13 267.7)
XYZxyz(10.8292, 9.2278, 34.0046)
Luminance0.0923 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38519F #9F8638
analogous
#38859F #38519F #53389F
triadic
#38519F #9F3851 #519F38
tetradic
#38519F #9F3885 #9F8638 #389F53
square
#38519F #9F3885 #9F8638 #389F53
split-complementary
#38519F #9F5338 #859F38
monochromatic
#182344 #283A72 #38519F #526DC2 #7F93D2

Accessibility & contrast

On white

7.38
#38519F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#38519F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38519F
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38519F#FFFFFF#000000##FFFFFF
##38519F1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285BA2
Deuteranopia (green-blind)
#13519D
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #38519f;
/* rgb */ color: rgb(56, 81, 159);
/* oklch */ color: oklch(45.8% 0.130 267.7);
Tailwind
colors: {
  custom: {
    50: '#7981bc',
    500: '#38519f',
    950: '#000000',
  },
}
SCSS
$custom: #38519f;
$custom-light: #7981bc;
$custom-dark: #000000;
JSON
{
  "hex": "#38519f",
  "rgb": {
    "r": 56,
    "g": 81,
    "b": 159
  },
  "hsl": {
    "h": 225.437,
    "s": 47.907,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45782,
    "c": 0.12982,
    "h": 267.7
  },
  "luminance": 0.09229
}

Semantic roles & 50–950 ramp

primary
#38519F
secondary
#BBAB77
accent
#B750D7
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #38519F

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

Preview Lab → · Contrast checker → · Palette generator →

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