#38299E#38299E

#38299E is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.178 H 279.7°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#38299E
RGBrgb(56, 41, 158)
HSLhsl(248, 59%, 39%)
HSVhsv(248, 74%, 62%)
CMYKcmyk(64.6%, 74.1%, 0%, 38%)
CIE-LABlab(26.43, 41.51, -60.96)
CIE-LCHlch(26.43, 73.75, 304.26°)
OKLaboklab(38.38% 0.03 -0.1759)
OKLCHoklch(38.38% 0.178 279.7)
XYZxyz(8.5934, 4.8946, 32.8330)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38299E #8F9E29
analogous
#29559E #38299E #73299E
triadic
#38299E #9E3829 #299E38
tetradic
#38299E #9E2955 #8F9E29 #299E73
square
#38299E #9E2955 #8F9E29 #299E73
split-complementary
#38299E #9E7329 #559E29
monochromatic
#16103D #271C6D #38299E #4B39CC #7769D8

Accessibility & contrast

On white

10.61
#38299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#38299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38299E
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38299E#FFFFFF#000000##FFFFFF
##38299E1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #38299e;
/* rgb */ color: rgb(56, 41, 158);
/* oklch */ color: oklch(38.4% 0.178 279.7);
Tailwind
colors: {
  custom: {
    50: '#7c65bc',
    500: '#38299e',
    950: '#000000',
  },
}
SCSS
$custom: #38299e;
$custom-light: #7c65bc;
$custom-dark: #000000;
JSON
{
  "hex": "#38299e",
  "rgb": {
    "r": 56,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 247.692,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38384,
    "c": 0.17844,
    "h": 279.7
  },
  "luminance": 0.04895
}

Semantic roles & 50–950 ramp

primary
#38299E
secondary
#B3BF64
accent
#E246CE
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #38299E

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

Preview Lab → · Contrast checker → · Palette generator →

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