#38299C#38299C

#38299C is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.2% C 0.176 H 279.9°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#38299C
RGBrgb(56, 41, 156)
HSLhsl(248, 58%, 39%)
HSVhsv(248, 74%, 61%)
CMYKcmyk(64.1%, 73.7%, 0%, 38.8%)
CIE-LABlab(26.23, 40.87, -60.06)
CIE-LCHlch(26.23, 72.65, 304.24°)
OKLaboklab(38.18% 0.0304 -0.1733)
OKLCHoklch(38.18% 0.176 279.9)
XYZxyz(8.4227, 4.8263, 31.9338)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38299C #8D9C29
analogous
#29539C #38299C #71299C
triadic
#38299C #9C3829 #299C38
tetradic
#38299C #9C2953 #8D9C29 #299C71
square
#38299C #9C2953 #8D9C29 #299C71
split-complementary
#38299C #9C7129 #539C29
monochromatic
#15103B #271C6C #38299C #4B38CB #7768D7

Accessibility & contrast

On white

10.68
#38299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#38299C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38299C
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38299C#FFFFFF#000000##FFFFFF
##38299C1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004960
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #38299c;
/* rgb */ color: rgb(56, 41, 156);
/* oklch */ color: oklch(38.2% 0.176 279.9);
Tailwind
colors: {
  custom: {
    50: '#7c65ba',
    500: '#38299c',
    950: '#000000',
  },
}
SCSS
$custom: #38299c;
$custom-light: #7c65ba;
$custom-dark: #000000;
JSON
{
  "hex": "#38299c",
  "rgb": {
    "r": 56,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 247.826,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38183,
    "c": 0.17594,
    "h": 279.9
  },
  "luminance": 0.04827
}

Semantic roles & 50–950 ramp

primary
#38299C
secondary
#B2BE63
accent
#E246CD
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #38299C

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

Preview Lab → · Contrast checker → · Palette generator →

#38299C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva