#38339B#38339B

#38339B is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.6% C 0.163 H 278.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#38339B
RGBrgb(56, 51, 155)
HSLhsl(243, 50%, 40%)
HSVhsv(243, 67%, 61%)
CMYKcmyk(63.9%, 67.1%, 0%, 39.2%)
CIE-LABlab(28.31, 34.59, -56.04)
CIE-LCHlch(28.31, 65.86, 301.68°)
OKLaboklab(39.65% 0.0228 -0.1615)
OKLCHoklch(39.65% 0.163 278)
XYZxyz(8.7292, 5.5743, 31.6199)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38339B #969B33
analogous
#33629B #38339B #6C339B
triadic
#38339B #9B3833 #339B38
tetradic
#38339B #9B3362 #969B33 #339B6C
square
#38339B #9B3362 #969B33 #339B6C
split-complementary
#38339B #9B6C33 #629B33
monochromatic
#17153F #27246D #38339B #4E48C3 #7B76D2

Accessibility & contrast

On white

9.93
#38339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#38339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38339B
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38339B#FFFFFF#000000##FFFFFF
##38339B1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #38339b;
/* rgb */ color: rgb(56, 51, 155);
/* oklch */ color: oklch(39.6% 0.163 278.0);
Tailwind
colors: {
  custom: {
    50: '#7b6bb9',
    500: '#38339b',
    950: '#000000',
  },
}
SCSS
$custom: #38339b;
$custom-light: #7b6bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#38339b",
  "rgb": {
    "r": 56,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 242.885,
    "s": 50.485,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39646,
    "c": 0.16316,
    "h": 278
  },
  "luminance": 0.05575
}

Semantic roles & 50–950 ramp

primary
#38339B
secondary
#B7BA6F
accent
#DA4ED3
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #38339B

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

Preview Lab → · Contrast checker → · Palette generator →

#38339B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva