#38339F#38339F

#38339F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.0% C 0.168 H 277.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#38339F
RGBrgb(56, 51, 159)
HSLhsl(243, 51%, 41%)
HSVhsv(243, 68%, 62%)
CMYKcmyk(64.8%, 67.9%, 0%, 37.6%)
CIE-LABlab(28.67, 35.94, -57.89)
CIE-LCHlch(28.67, 68.14, 301.84°)
OKLaboklab(40.02% 0.0224 -0.167)
OKLCHoklch(40.02% 0.168 277.6)
XYZxyz(9.0707, 5.7109, 33.4185)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#38339F #9A9F33
analogous
#33649F #38339F #6E339F
triadic
#38339F #9F3833 #339F38
tetradic
#38339F #9F3364 #9A9F33 #339F6E
square
#38339F #9F3364 #9A9F33 #339F6E
split-complementary
#38339F #9F6E33 #649F33
monochromatic
#171542 #282471 #38339F #504AC5 #7D79D4

Accessibility & contrast

On white

9.80
#38339F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#38339F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #38339F
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##38339F#FFFFFF#000000##FFFFFF
##38339F1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #38339f;
/* rgb */ color: rgb(56, 51, 159);
/* oklch */ color: oklch(40.0% 0.168 277.6);
Tailwind
colors: {
  custom: {
    50: '#7b6bbc',
    500: '#38339f',
    950: '#000000',
  },
}
SCSS
$custom: #38339f;
$custom-light: #7b6bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#38339f",
  "rgb": {
    "r": 56,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 242.778,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.40016,
    "c": 0.16845,
    "h": 277.6
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#38339F
secondary
#B9BC71
accent
#DB4DD4
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #38339F

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

Preview Lab → · Contrast checker → · Palette generator →

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