#38349D#38349D

#38349D is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.165 H 277.6°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#38349D
RGBrgb(56, 52, 157)
HSLhsl(242, 50%, 41%)
HSVhsv(242, 67%, 62%)
CMYKcmyk(64.3%, 66.9%, 0%, 38.4%)
CIE-LABlab(28.72, 34.65, -56.59)
CIE-LCHlch(28.72, 66.35, 301.48°)
OKLaboklab(40% 0.0218 -0.1631)
OKLCHoklch(40% 0.165 277.6)
XYZxyz(8.9427, 5.7303, 32.5266)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38349D #999D34
analogous
#34649D #38349D #6C349D
triadic
#38349D #9D3834 #349D38
tetradic
#38349D #9D3464 #999D34 #349D6C
square
#38349D #9D3464 #999D34 #349D6C
split-complementary
#38349D #9D6C34 #649D34
monochromatic
#171641 #28256F #38349D #4F4BC3 #7C79D3

Accessibility & contrast

On white

9.78
#38349D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#38349D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38349D
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38349D#FFFFFF#000000##FFFFFF
##38349D1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A0
Deuteranopia (green-blind)
#003F9B
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #38349d;
/* rgb */ color: rgb(56, 52, 157);
/* oklch */ color: oklch(40.0% 0.165 277.6);
Tailwind
colors: {
  custom: {
    50: '#7b6cbb',
    500: '#38349d',
    950: '#000000',
  },
}
SCSS
$custom: #38349d;
$custom-light: #7b6cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#38349d",
  "rgb": {
    "r": 56,
    "g": 52,
    "b": 157
  },
  "hsl": {
    "h": 242.286,
    "s": 50.239,
    "l": 40.98
  },
  "oklch": {
    "l": 0.39998,
    "c": 0.1646,
    "h": 277.6
  },
  "luminance": 0.05731
}

Semantic roles & 50–950 ramp

primary
#38349D
secondary
#B8BB72
accent
#DA4ED4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #38349D

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

Preview Lab → · Contrast checker → · Palette generator →

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