#38397C#38397C

#38397C is a dark, moderate blue. Relative luminance 0.052; OKLCH L 38.2% C 0.111 H 279.1°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#38397C
RGBrgb(56, 57, 124)
HSLhsl(239, 38%, 35%)
HSVhsv(239, 55%, 49%)
CMYKcmyk(54.8%, 54%, 0%, 51.4%)
CIE-LABlab(27.36, 19.98, -38.40)
CIE-LCHlch(27.36, 43.28, 297.49°)
OKLaboklab(38.17% 0.0176 -0.1096)
OKLCHoklch(38.17% 0.111 279.1)
XYZxyz(6.7310, 5.2218, 19.7181)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38397C #7C7B38
analogous
#385B7C #38397C #59387C
triadic
#38397C #7C3839 #397C38
tetradic
#38397C #7C385B #7C7B38 #387C59
square
#38397C #7C385B #7C7B38 #387C59
split-complementary
#38397C #7C5938 #5B7C38
monochromatic
#121228 #252652 #38397C #4B4CA6 #7071BE

Accessibility & contrast

On white

10.27
#38397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#38397C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38397C
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38397C#FFFFFF#000000##FFFFFF
##38397C1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16437E
Deuteranopia (green-blind)
#0C3E7B
Tritanopia (blue-blind)
#1A4854
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #38397c;
/* rgb */ color: rgb(56, 57, 124);
/* oklch */ color: oklch(38.2% 0.111 279.1);
Tailwind
colors: {
  custom: {
    50: '#746fa2',
    500: '#38397c',
    950: '#000000',
  },
}
SCSS
$custom: #38397c;
$custom-light: #746fa2;
$custom-dark: #000000;
JSON
{
  "hex": "#38397c",
  "rgb": {
    "r": 56,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 239.118,
    "s": 37.778,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38167,
    "c": 0.11105,
    "h": 279.1
  },
  "luminance": 0.05222
}

Semantic roles & 50–950 ramp

primary
#38397C
secondary
#A7A668
accent
#CC5ACE
background
#F7F6FA
surface
#EDECF3
border
#C8C7CD
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #38397C

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

Preview Lab → · Contrast checker → · Palette generator →

#38397C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva