#38508D#38508D

#38508D is a dark, moderate blue. Relative luminance 0.085; OKLCH L 44.3% C 0.105 H 266.1°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#38508D
RGBrgb(56, 80, 141)
HSLhsl(223, 43%, 39%)
HSVhsv(223, 60%, 55%)
CMYKcmyk(60.3%, 43.3%, 0%, 44.7%)
CIE-LABlab(35.00, 10.60, -36.69)
CIE-LCHlch(35.00, 38.19, 286.12°)
OKLaboklab(44.34% -0.0071 -0.1044)
OKLCHoklch(44.34% 0.105 266.1)
XYZxyz(9.3056, 8.5004, 26.3445)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38508D #8D7538
analogous
#387A8D #38508D #4A388D
triadic
#38508D #8D3850 #508D38
tetradic
#38508D #8D387A #8D7538 #388D4A
square
#38508D #8D387A #8D7538 #388D4A
split-complementary
#38508D #8D4A38 #7A8D38
monochromatic
#151E35 #273761 #38508D #4B69B7 #778EC9

Accessibility & contrast

On white

7.78
#38508D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#38508D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38508D
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38508D#FFFFFF#000000##FFFFFF
##38508D1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35568F
Deuteranopia (green-blind)
#2A4F8C
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #38508d;
/* rgb */ color: rgb(56, 80, 141);
/* oklch */ color: oklch(44.3% 0.105 266.1);
Tailwind
colors: {
  custom: {
    50: '#7680af',
    500: '#38508d',
    950: '#000000',
  },
}
SCSS
$custom: #38508d;
$custom-light: #7680af;
$custom-dark: #000000;
JSON
{
  "hex": "#38508d",
  "rgb": {
    "r": 56,
    "g": 80,
    "b": 141
  },
  "hsl": {
    "h": 223.059,
    "s": 43.147,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44335,
    "c": 0.10462,
    "h": 266.1
  },
  "luminance": 0.08501
}

Semantic roles & 50–950 ramp

primary
#38508D
secondary
#B29F6F
accent
#AF55D3
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#090A10
muted
#7B7C7F

Preview Lab

Preview with #38508D

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

Preview Lab → · Contrast checker → · Palette generator →

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