#38338A#38338A

#38338A is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.140 H 280.0°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#38338A
RGBrgb(56, 51, 138)
HSLhsl(243, 46%, 37%)
HSVhsv(243, 63%, 54%)
CMYKcmyk(59.4%, 63%, 0%, 45.9%)
CIE-LABlab(26.86, 28.78, -47.96)
CIE-LCHlch(26.86, 55.93, 300.97°)
OKLaboklab(38.13% 0.0243 -0.1378)
OKLCHoklch(38.13% 0.14 280)
XYZxyz(7.4007, 5.0429, 24.6232)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38338A #858A33
analogous
#335A8A #38338A #64338A
triadic
#38338A #8A3833 #338A38
tetradic
#38338A #8A335A #858A33 #338A64
square
#38338A #8A335A #858A33 #338A64
split-complementary
#38338A #8A6433 #5A8A33
monochromatic
#141231 #26225D #38338A #4A44B7 #736EC9

Accessibility & contrast

On white

10.46
#38338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #38338A
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38338A#FFFFFF#000000##FFFFFF
##38338A1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#064859
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #38338a;
/* rgb */ color: rgb(56, 51, 138);
/* oklch */ color: oklch(38.1% 0.140 280.0);
Tailwind
colors: {
  custom: {
    50: '#776bad',
    500: '#38338a',
    950: '#000000',
  },
}
SCSS
$custom: #38338a;
$custom-light: #776bad;
$custom-dark: #000000;
JSON
{
  "hex": "#38338a",
  "rgb": {
    "r": 56,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 243.448,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38132,
    "c": 0.13994,
    "h": 280
  },
  "luminance": 0.05043
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #38338A

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

Preview Lab → · Contrast checker → · Palette generator →

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