#382898#382898

#382898 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.172 H 280.7°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#382898
RGBrgb(56, 40, 152)
HSLhsl(249, 58%, 38%)
HSVhsv(249, 74%, 60%)
CMYKcmyk(63.2%, 73.7%, 0%, 40.4%)
CIE-LABlab(25.64, 40.15, -58.60)
CIE-LCHlch(25.64, 71.03, 304.42°)
OKLaboklab(37.64% 0.032 -0.169)
OKLCHoklch(37.64% 0.172 280.7)
XYZxyz(8.0554, 4.6247, 30.1678)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#382898 #889828
analogous
#285098 #382898 #702898
triadic
#382898 #983828 #289838
tetradic
#382898 #982850 #889828 #289870
square
#382898 #982850 #889828 #289870
split-complementary
#382898 #987028 #509828
monochromatic
#140F37 #261B68 #382898 #4A35C8 #7464D6

Accessibility & contrast

On white

10.91
#382898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#382898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #382898
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##382898#FFFFFF#000000##FFFFFF
##3828981.0010.911.9310.91
#FFFFFF10.911.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419B
Deuteranopia (green-blind)
#003996
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #382898;
/* rgb */ color: rgb(56, 40, 152);
/* oklch */ color: oklch(37.6% 0.172 280.7);
Tailwind
colors: {
  custom: {
    50: '#7b64b7',
    500: '#382898',
    950: '#000000',
  },
}
SCSS
$custom: #382898;
$custom-light: #7b64b7;
$custom-dark: #000000;
JSON
{
  "hex": "#382898",
  "rgb": {
    "r": 56,
    "g": 40,
    "b": 152
  },
  "hsl": {
    "h": 248.571,
    "s": 58.333,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3764,
    "c": 0.17199,
    "h": 280.7
  },
  "luminance": 0.04625
}

Semantic roles & 50–950 ramp

primary
#382898
secondary
#AFBC60
accent
#E246CB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #382898

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

Preview Lab → · Contrast checker → · Palette generator →

#382898 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva