#38337E#38337E

#38337E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.1% C 0.123 H 281.6°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#38337E
RGBrgb(56, 51, 126)
HSLhsl(244, 42%, 35%)
HSVhsv(244, 60%, 49%)
CMYKcmyk(55.6%, 59.5%, 0%, 50.6%)
CIE-LABlab(25.91, 24.67, -42.00)
CIE-LCHlch(25.91, 48.71, 300.43°)
OKLaboklab(37.13% 0.0247 -0.1203)
OKLCHoklch(37.13% 0.123 281.6)
XYZxyz(6.5794, 4.7144, 20.2979)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38337E #797E33
analogous
#33547E #38337E #5E337E
triadic
#38337E #7E3833 #337E38
tetradic
#38337E #7E3354 #797E33 #337E5E
square
#38337E #7E3354 #797E33 #337E5E
split-complementary
#38337E #7E5E33 #547E33
monochromatic
#111027 #252152 #38337E #4B45AA #6F69C2

Accessibility & contrast

On white

10.81
#38337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#38337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38337E
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38337E#FFFFFF#000000##FFFFFF
##38337E1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#194453
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #38337e;
/* rgb */ color: rgb(56, 51, 126);
/* oklch */ color: oklch(37.1% 0.123 281.6);
Tailwind
colors: {
  custom: {
    50: '#756ba4',
    500: '#38337e',
    950: '#000000',
  },
}
SCSS
$custom: #38337e;
$custom-light: #756ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#38337e",
  "rgb": {
    "r": 56,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 244,
    "s": 42.373,
    "l": 34.706
  },
  "oklch": {
    "l": 0.37131,
    "c": 0.1228,
    "h": 281.6
  },
  "luminance": 0.04715
}

Semantic roles & 50–950 ramp

primary
#38337E
secondary
#A5AA63
accent
#D256CA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #38337E

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

Preview Lab → · Contrast checker → · Palette generator →

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