#38398D#38398D

#38398D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.136 H 277.7°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#38398D
RGBrgb(56, 57, 141)
HSLhsl(239, 43%, 39%)
HSVhsv(239, 60%, 55%)
CMYKcmyk(60.3%, 59.6%, 0%, 44.7%)
CIE-LABlab(28.62, 25.90, -46.96)
CIE-LCHlch(28.62, 53.63, 298.88°)
OKLaboklab(39.5% 0.0181 -0.1348)
OKLCHoklch(39.5% 0.136 277.7)
XYZxyz(7.9002, 5.6895, 25.8760)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38398D #8D8C38
analogous
#38638D #38398D #61388D
triadic
#38398D #8D3839 #398D38
tetradic
#38398D #8D3863 #8D8C38 #388D61
square
#38398D #8D3863 #8D8C38 #388D61
split-complementary
#38398D #8D6138 #638D38
monochromatic
#151635 #272761 #38398D #4B4CB7 #7778C9

Accessibility & contrast

On white

9.82
#38398D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#38398D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38398D
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38398D#FFFFFF#000000##FFFFFF
##38398D1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#004D5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #38398d;
/* rgb */ color: rgb(56, 57, 141);
/* oklch */ color: oklch(39.5% 0.136 277.7);
Tailwind
colors: {
  custom: {
    50: '#776faf',
    500: '#38398d',
    950: '#000000',
  },
}
SCSS
$custom: #38398d;
$custom-light: #776faf;
$custom-dark: #000000;
JSON
{
  "hex": "#38398d",
  "rgb": {
    "r": 56,
    "g": 57,
    "b": 141
  },
  "hsl": {
    "h": 239.294,
    "s": 43.147,
    "l": 38.627
  },
  "oklch": {
    "l": 0.39504,
    "c": 0.13604,
    "h": 277.7
  },
  "luminance": 0.0569
}

Semantic roles & 50–950 ramp

primary
#38398D
secondary
#B2B16F
accent
#D155D3
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #38398D

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

Preview Lab → · Contrast checker → · Palette generator →

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