#38309F#38309F

#38309F is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.172 H 278.3°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#38309F
RGBrgb(56, 48, 159)
HSLhsl(244, 54%, 41%)
HSVhsv(244, 70%, 62%)
CMYKcmyk(64.8%, 69.8%, 0%, 37.6%)
CIE-LABlab(28.00, 37.77, -58.99)
CIE-LCHlch(28.00, 70.05, 302.63°)
OKLaboklab(39.53% 0.0247 -0.1702)
OKLCHoklch(39.53% 0.172 278.3)
XYZxyz(8.9438, 5.4571, 33.3762)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38309F #979F30
analogous
#30609F #38309F #6F309F
triadic
#38309F #9F3830 #309F38
tetradic
#38309F #9F3060 #979F30 #309F6F
square
#38309F #9F3060 #979F30 #309F6F
split-complementary
#38309F #9F6F30 #609F30
monochromatic
#171441 #272270 #38309F #4F45C7 #7B74D5

Accessibility & contrast

On white

10.04
#38309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#38309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38309F
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38309F#FFFFFF#000000##FFFFFF
##38309F1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #38309f;
/* rgb */ color: rgb(56, 48, 159);
/* oklch */ color: oklch(39.5% 0.172 278.3);
Tailwind
colors: {
  custom: {
    50: '#7c69bc',
    500: '#38309f',
    950: '#000000',
  },
}
SCSS
$custom: #38309f;
$custom-light: #7c69bc;
$custom-dark: #000000;
JSON
{
  "hex": "#38309f",
  "rgb": {
    "r": 56,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 244.324,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39532,
    "c": 0.17196,
    "h": 278.3
  },
  "luminance": 0.05458
}

Semantic roles & 50–950 ramp

primary
#38309F
secondary
#B7BD6E
accent
#DD4BD2
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #38309F

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

Preview Lab → · Contrast checker → · Palette generator →

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