#38349E#38349E

#38349E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.166 H 277.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#38349E
RGBrgb(56, 52, 158)
HSLhsl(242, 50%, 41%)
HSVhsv(242, 67%, 62%)
CMYKcmyk(64.6%, 67.1%, 0%, 38%)
CIE-LABlab(28.81, 34.99, -57.05)
CIE-LCHlch(28.81, 66.93, 301.52°)
OKLaboklab(40.09% 0.0217 -0.1645)
OKLCHoklch(40.09% 0.166 277.5)
XYZxyz(9.0284, 5.7646, 32.9780)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38349E #9A9E34
analogous
#34659E #38349E #6D349E
triadic
#38349E #9E3834 #349E38
tetradic
#38349E #9E3465 #9A9E34 #349E6D
square
#38349E #9E3465 #9A9E34 #349E6D
split-complementary
#38349E #9E6D34 #659E34
monochromatic
#171642 #282570 #38349E #504BC4 #7D79D3

Accessibility & contrast

On white

9.75
#38349E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#38349E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38349E
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38349E#FFFFFF#000000##FFFFFF
##38349E1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #38349e;
/* rgb */ color: rgb(56, 52, 158);
/* oklch */ color: oklch(40.1% 0.166 277.5);
Tailwind
colors: {
  custom: {
    50: '#7b6cbc',
    500: '#38349e',
    950: '#000000',
  },
}
SCSS
$custom: #38349e;
$custom-light: #7b6cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#38349e",
  "rgb": {
    "r": 56,
    "g": 52,
    "b": 158
  },
  "hsl": {
    "h": 242.264,
    "s": 50.476,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4009,
    "c": 0.16593,
    "h": 277.5
  },
  "luminance": 0.05765
}

Semantic roles & 50–950 ramp

primary
#38349E
secondary
#B9BC72
accent
#DA4ED5
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #38349E

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

Preview Lab → · Contrast checker → · Palette generator →

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