#38509D#38509D

#38509D is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.128 H 268.0°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#38509D
RGBrgb(56, 80, 157)
HSLhsl(226, 47%, 42%)
HSVhsv(226, 64%, 62%)
CMYKcmyk(64.3%, 49%, 0%, 38.4%)
CIE-LABlab(36.01, 16.38, -44.78)
CIE-LCHlch(36.01, 47.68, 290.09°)
OKLaboklab(45.43% -0.0045 -0.1281)
OKLCHoklch(45.43% 0.128 268)
XYZxyz(10.5833, 9.0115, 33.0734)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38509D #9D8538
analogous
#38839D #38509D #53389D
triadic
#38509D #9D3850 #509D38
tetradic
#38509D #9D3883 #9D8538 #389D53
square
#38509D #9D3883 #9D8538 #389D53
split-complementary
#38509D #9D5338 #839D38
monochromatic
#182243 #283970 #38509D #516CC1 #7E92D1

Accessibility & contrast

On white

7.49
#38509D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#38509D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38509D
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38509D#FFFFFF#000000##FFFFFF
##38509D1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2859A0
Deuteranopia (green-blind)
#13509B
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #38509d;
/* rgb */ color: rgb(56, 80, 157);
/* oklch */ color: oklch(45.4% 0.128 268.0);
Tailwind
colors: {
  custom: {
    50: '#7980ba',
    500: '#38509d',
    950: '#000000',
  },
}
SCSS
$custom: #38509d;
$custom-light: #7980ba;
$custom-dark: #000000;
JSON
{
  "hex": "#38509d",
  "rgb": {
    "r": 56,
    "g": 80,
    "b": 157
  },
  "hsl": {
    "h": 225.743,
    "s": 47.418,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45426,
    "c": 0.12822,
    "h": 268
  },
  "luminance": 0.09012
}

Semantic roles & 50–950 ramp

primary
#38509D
secondary
#BAAA76
accent
#B751D7
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #38509D

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

Preview Lab → · Contrast checker → · Palette generator →

#38509D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva