#38318F#38318F

#38318F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.149 H 280.0°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#38318F
RGBrgb(56, 49, 143)
HSLhsl(244, 49%, 38%)
HSVhsv(244, 66%, 56%)
CMYKcmyk(60.8%, 65.7%, 0%, 43.9%)
CIE-LABlab(26.79, 31.77, -51.16)
CIE-LCHlch(26.79, 60.22, 301.84°)
OKLaboklab(38.22% 0.0259 -0.1472)
OKLCHoklch(38.22% 0.149 280)
XYZxyz(7.6856, 5.0200, 26.5452)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38318F #888F31
analogous
#31598F #38318F #67318F
triadic
#38318F #8F3831 #318F38
tetradic
#38318F #8F3159 #888F31 #318F67
square
#38318F #8F3159 #888F31 #318F67
split-complementary
#38318F #8F6731 #598F31
monochromatic
#141234 #262161 #38318F #4A41BD #746DCD

Accessibility & contrast

On white

10.48
#38318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#38318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38318F
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38318F#FFFFFF#000000##FFFFFF
##38318F1.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #38318f;
/* rgb */ color: rgb(56, 49, 143);
/* oklch */ color: oklch(38.2% 0.149 280.0);
Tailwind
colors: {
  custom: {
    50: '#786ab1',
    500: '#38318f',
    950: '#000000',
  },
}
SCSS
$custom: #38318f;
$custom-light: #786ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#38318f",
  "rgb": {
    "r": 56,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 244.468,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38216,
    "c": 0.14949,
    "h": 280
  },
  "luminance": 0.05021
}

Semantic roles & 50–950 ramp

primary
#38318F
secondary
#AFB567
accent
#D94FCE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #38318F

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

Preview Lab → · Contrast checker → · Palette generator →

#38318F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva