#38398F#38398F

#38398F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.139 H 277.5°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#38398F
RGBrgb(56, 57, 143)
HSLhsl(239, 44%, 39%)
HSVhsv(239, 61%, 56%)
CMYKcmyk(60.8%, 60.1%, 0%, 43.9%)
CIE-LABlab(28.77, 26.60, -47.94)
CIE-LCHlch(28.77, 54.82, 299.02°)
OKLaboklab(39.67% 0.0181 -0.1377)
OKLCHoklch(39.67% 0.139 277.5)
XYZxyz(8.0503, 5.7496, 26.6668)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38398F #8F8E38
analogous
#38658F #38398F #63388F
triadic
#38398F #8F3839 #398F38
tetradic
#38398F #8F3865 #8F8E38 #388F63
square
#38398F #8F3865 #8F8E38 #388F63
split-complementary
#38398F #8F6338 #658F38
monochromatic
#161637 #272763 #38398F #4B4DB9 #7778CA

Accessibility & contrast

On white

9.77
#38398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#38398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38398F
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38398F#FFFFFF#000000##FFFFFF
##38398F1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #38398f;
/* rgb */ color: rgb(56, 57, 143);
/* oklch */ color: oklch(39.7% 0.139 277.5);
Tailwind
colors: {
  custom: {
    50: '#786fb0',
    500: '#38398f',
    950: '#000000',
  },
}
SCSS
$custom: #38398f;
$custom-light: #786fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#38398f",
  "rgb": {
    "r": 56,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 239.31,
    "s": 43.719,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39669,
    "c": 0.1389,
    "h": 277.5
  },
  "luminance": 0.0575
}

Semantic roles & 50–950 ramp

primary
#38398F
secondary
#B3B270
accent
#D254D3
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #38398F

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

Preview Lab → · Contrast checker → · Palette generator →

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