#38349F#38349F

#38349F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.2% C 0.167 H 277.4°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#38349F
RGBrgb(56, 52, 159)
HSLhsl(242, 51%, 41%)
HSVhsv(242, 67%, 62%)
CMYKcmyk(64.8%, 67.3%, 0%, 37.6%)
CIE-LABlab(28.90, 35.33, -57.51)
CIE-LCHlch(28.90, 67.50, 301.56°)
OKLaboklab(40.18% 0.0216 -0.1659)
OKLCHoklch(40.18% 0.167 277.4)
XYZxyz(9.1149, 5.7992, 33.4332)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38349F #9B9F34
analogous
#34669F #38349F #6E349F
triadic
#38349F #9F3834 #349F38
tetradic
#38349F #9F3466 #9B9F34 #349F6E
square
#38349F #9F3466 #9B9F34 #349F6E
split-complementary
#38349F #9F6E34 #669F34
monochromatic
#181643 #282571 #38349F #504CC4 #7D7AD3

Accessibility & contrast

On white

9.72
#38349F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#38349F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38349F
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38349F#FFFFFF#000000##FFFFFF
##38349F1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#00409D
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #38349f;
/* rgb */ color: rgb(56, 52, 159);
/* oklch */ color: oklch(40.2% 0.167 277.4);
Tailwind
colors: {
  custom: {
    50: '#7b6cbc',
    500: '#38349f',
    950: '#000000',
  },
}
SCSS
$custom: #38349f;
$custom-light: #7b6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#38349f",
  "rgb": {
    "r": 56,
    "g": 52,
    "b": 159
  },
  "hsl": {
    "h": 242.243,
    "s": 50.711,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40182,
    "c": 0.16726,
    "h": 277.4
  },
  "luminance": 0.058
}

Semantic roles & 50–950 ramp

primary
#38349F
secondary
#B9BC73
accent
#DA4ED5
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #38349F

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

Preview Lab → · Contrast checker → · Palette generator →

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