#38509F#38509F

#38509F is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.6% C 0.131 H 268.2°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#38509F
RGBrgb(56, 80, 159)
HSLhsl(226, 48%, 42%)
HSVhsv(226, 65%, 62%)
CMYKcmyk(64.8%, 49.7%, 0%, 37.6%)
CIE-LABlab(36.14, 17.11, -45.77)
CIE-LCHlch(36.14, 48.86, 290.50°)
OKLaboklab(45.57% -0.0042 -0.131)
OKLCHoklch(45.57% 0.131 268.2)
XYZxyz(10.7554, 9.0803, 33.9800)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38509F #9F8738
analogous
#38849F #38509F #53389F
triadic
#38509F #9F3850 #509F38
tetradic
#38509F #9F3884 #9F8738 #389F53
square
#38509F #9F3884 #9F8738 #389F53
split-complementary
#38509F #9F5338 #849F38
monochromatic
#182244 #283972 #38509F #526CC2 #7F93D2

Accessibility & contrast

On white

7.46
#38509F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#38509F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38509F
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38509F#FFFFFF#000000##FFFFFF
##38509F1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265AA2
Deuteranopia (green-blind)
#0E519D
Tritanopia (blue-blind)
#006270
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #38509f;
/* rgb */ color: rgb(56, 80, 159);
/* oklch */ color: oklch(45.6% 0.131 268.2);
Tailwind
colors: {
  custom: {
    50: '#7980bc',
    500: '#38509f',
    950: '#000000',
  },
}
SCSS
$custom: #38509f;
$custom-light: #7980bc;
$custom-dark: #000000;
JSON
{
  "hex": "#38509f",
  "rgb": {
    "r": 56,
    "g": 80,
    "b": 159
  },
  "hsl": {
    "h": 226.019,
    "s": 47.907,
    "l": 42.157
  },
  "oklch": {
    "l": 0.45569,
    "c": 0.13112,
    "h": 268.2
  },
  "luminance": 0.09081
}

Semantic roles & 50–950 ramp

primary
#38509F
secondary
#BBAC77
accent
#B850D7
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #38509F

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

Preview Lab → · Contrast checker → · Palette generator →

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