#38418F#38418F

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

Color values

HEX#38418F
RGBrgb(56, 65, 143)
HSLhsl(234, 44%, 39%)
HSVhsv(234, 61%, 56%)
CMYKcmyk(60.8%, 54.5%, 0%, 43.9%)
CIE-LABlab(30.89, 21.30, -44.51)
CIE-LCHlch(30.89, 49.35, 295.57°)
OKLaboklab(41.25% 0.0098 -0.1276)
OKLCHoklch(41.25% 0.128 274.4)
XYZxyz(8.4775, 6.6039, 26.8092)
Luminance0.0660 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38418F #8F8638
analogous
#386D8F #38418F #5B388F
triadic
#38418F #8F3841 #418F38
tetradic
#38418F #8F386D #8F8638 #388F5B
square
#38418F #8F386D #8F8638 #388F5B
split-complementary
#38418F #8F5B38 #6D8F38
monochromatic
#161937 #272D63 #38418F #4B57B9 #7780CA

Accessibility & contrast

On white

9.05
#38418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#38418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38418F
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38418F#FFFFFF#000000##FFFFFF
##38418F1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104D92
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #38418f;
/* rgb */ color: rgb(56, 65, 143);
/* oklch */ color: oklch(41.2% 0.128 274.4);
Tailwind
colors: {
  custom: {
    50: '#7775b0',
    500: '#38418f',
    950: '#000000',
  },
}
SCSS
$custom: #38418f;
$custom-light: #7775b0;
$custom-dark: #000000;
JSON
{
  "hex": "#38418f",
  "rgb": {
    "r": 56,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 233.793,
    "s": 43.719,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41246,
    "c": 0.12794,
    "h": 274.4
  },
  "luminance": 0.06605
}

Semantic roles & 50–950 ramp

primary
#38418F
secondary
#B3AC70
accent
#C654D3
background
#F7F7FA
surface
#EEEDF5
border
#C9C8CF
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #38418F

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

Preview Lab → · Contrast checker → · Palette generator →

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