#38337B#38337B

#38337B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.9% C 0.118 H 282.0°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#38337B
RGBrgb(56, 51, 123)
HSLhsl(244, 41%, 34%)
HSVhsv(244, 59%, 48%)
CMYKcmyk(54.5%, 58.5%, 0%, 51.8%)
CIE-LABlab(25.68, 23.65, -40.48)
CIE-LCHlch(25.68, 46.88, 300.30°)
OKLaboklab(36.89% 0.0247 -0.1158)
OKLCHoklch(36.89% 0.118 282)
XYZxyz(6.3888, 4.6381, 19.2936)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38337B #767B33
analogous
#33527B #38337B #5C337B
triadic
#38337B #7B3833 #337B38
tetradic
#38337B #7B3352 #767B33 #337B5C
square
#38337B #7B3352 #767B33 #337B5C
split-complementary
#38337B #7B5C33 #527B33
monochromatic
#110F24 #242150 #38337B #4C45A6 #6E68C0

Accessibility & contrast

On white

10.89
#38337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#38337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38337B
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38337B#FFFFFF#000000##FFFFFF
##38337B1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7D
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#1C4351
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #38337b;
/* rgb */ color: rgb(56, 51, 123);
/* oklch */ color: oklch(36.9% 0.118 282.0);
Tailwind
colors: {
  custom: {
    50: '#756ba2',
    500: '#38337b',
    950: '#000000',
  },
}
SCSS
$custom: #38337b;
$custom-light: #756ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#38337b",
  "rgb": {
    "r": 56,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 244.167,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36891,
    "c": 0.11841,
    "h": 282
  },
  "luminance": 0.04638
}

Semantic roles & 50–950 ramp

primary
#38337B
secondary
#A3A862
accent
#D157C9
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #38337B

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

Preview Lab → · Contrast checker → · Palette generator →

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