#38418E#38418E

#38418E is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.2% C 0.126 H 274.4°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#38418E
RGBrgb(56, 65, 142)
HSLhsl(234, 43%, 39%)
HSVhsv(234, 61%, 56%)
CMYKcmyk(60.6%, 54.2%, 0%, 44.3%)
CIE-LABlab(30.82, 20.94, -44.01)
CIE-LCHlch(30.82, 48.74, 295.44°)
OKLaboklab(41.17% 0.0097 -0.1261)
OKLCHoklch(41.17% 0.126 274.4)
XYZxyz(8.4021, 6.5737, 26.4120)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38418E #8E8538
analogous
#386C8E #38418E #5A388E
triadic
#38418E #8E3841 #418E38
tetradic
#38418E #8E386C #8E8538 #388E5A
square
#38418E #8E386C #8E8538 #388E5A
split-complementary
#38418E #8E5A38 #6C8E38
monochromatic
#151936 #272D62 #38418E #4B57B8 #7780C9

Accessibility & contrast

On white

9.07
#38418E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#38418E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38418E
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38418E#FFFFFF#000000##FFFFFF
##38418E1.009.072.319.07
#FFFFFF9.071.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#124C91
Deuteranopia (green-blind)
#00458C
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #38418e;
/* rgb */ color: rgb(56, 65, 142);
/* oklch */ color: oklch(41.2% 0.126 274.4);
Tailwind
colors: {
  custom: {
    50: '#7775b0',
    500: '#38418e',
    950: '#000000',
  },
}
SCSS
$custom: #38418e;
$custom-light: #7775b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38418e",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 142
  },
  "hsl": {
    "h": 233.721,
    "s": 43.434,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4117,
    "c": 0.12647,
    "h": 274.4
  },
  "luminance": 0.06574
}

Semantic roles & 50–950 ramp

primary
#38418E
secondary
#B2AB6F
accent
#C655D3
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #38418E

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

Preview Lab → · Contrast checker → · Palette generator →

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