#38338E#38338E

#38338E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.5% C 0.146 H 279.5°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#38338E
RGBrgb(56, 51, 142)
HSLhsl(243, 47%, 38%)
HSVhsv(243, 64%, 56%)
CMYKcmyk(60.6%, 64.1%, 0%, 44.3%)
CIE-LABlab(27.19, 30.15, -49.90)
CIE-LCHlch(27.19, 58.30, 301.14°)
OKLaboklab(38.48% 0.0241 -0.1435)
OKLCHoklch(38.48% 0.146 279.5)
XYZxyz(7.6957, 5.1609, 26.1766)
Luminance0.0516 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38338E #898E33
analogous
#335B8E #38338E #66338E
triadic
#38338E #8E3833 #338E38
tetradic
#38338E #8E335B #898E33 #338E66
square
#38338E #8E335B #898E33 #338E66
split-complementary
#38338E #8E6633 #5B8E33
monochromatic
#141334 #262361 #38338E #4A43BB #7570CC

Accessibility & contrast

On white

10.33
#38338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#38338E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38338E
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38338E#FFFFFF#000000##FFFFFF
##38338E1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #38338e;
/* rgb */ color: rgb(56, 51, 142);
/* oklch */ color: oklch(38.5% 0.146 279.5);
Tailwind
colors: {
  custom: {
    50: '#786bb0',
    500: '#38338e',
    950: '#000000',
  },
}
SCSS
$custom: #38338e;
$custom-light: #786bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#38338e",
  "rgb": {
    "r": 56,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 243.297,
    "s": 47.15,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38479,
    "c": 0.14551,
    "h": 279.5
  },
  "luminance": 0.05161
}

Semantic roles & 50–950 ramp

primary
#38338E
secondary
#AFB469
accent
#D751CF
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #38338E

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

Preview Lab → · Contrast checker → · Palette generator →

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