#38338B#38338B

#38338B is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.2% C 0.141 H 279.9°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#38338B
RGBrgb(56, 51, 139)
HSLhsl(243, 46%, 37%)
HSVhsv(243, 63%, 55%)
CMYKcmyk(59.7%, 63.3%, 0%, 45.5%)
CIE-LABlab(26.94, 29.12, -48.45)
CIE-LCHlch(26.94, 56.53, 301.01°)
OKLaboklab(38.22% 0.0243 -0.1392)
OKLCHoklch(38.22% 0.141 279.9)
XYZxyz(7.4734, 5.0720, 25.0063)
Luminance0.0507 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38338B #868B33
analogous
#335A8B #38338B #64338B
triadic
#38338B #8B3833 #338B38
tetradic
#38338B #8B335A #868B33 #338B64
square
#38338B #8B335A #868B33 #338B64
split-complementary
#38338B #8B6433 #5A8B33
monochromatic
#141231 #26235E #38338B #4A43B8 #746ECA

Accessibility & contrast

On white

10.42
#38338B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#38338B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38338B
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38338B#FFFFFF#000000##FFFFFF
##38338B1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#03495A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #38338b;
/* rgb */ color: rgb(56, 51, 139);
/* oklch */ color: oklch(38.2% 0.141 279.9);
Tailwind
colors: {
  custom: {
    50: '#786bae',
    500: '#38338b',
    950: '#000000',
  },
}
SCSS
$custom: #38338b;
$custom-light: #786bae;
$custom-dark: #000000;
JSON
{
  "hex": "#38338b",
  "rgb": {
    "r": 56,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 243.409,
    "s": 46.316,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38218,
    "c": 0.14134,
    "h": 279.9
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

primary
#38338B
secondary
#AEB268
accent
#D652CE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #38338B

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

Preview Lab → · Contrast checker → · Palette generator →

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