#342496#342496

#342496 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.174 H 279.7°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#342496
RGBrgb(52, 36, 150)
HSLhsl(248, 61%, 36%)
HSVhsv(248, 76%, 59%)
CMYKcmyk(65.3%, 76%, 0%, 41.2%)
CIE-LABlab(24.30, 41.23, -59.58)
CIE-LCHlch(24.30, 72.45, 304.68°)
OKLaboklab(36.55% 0.0294 -0.172)
OKLCHoklch(36.55% 0.174 279.7)
XYZxyz(7.5503, 4.1932, 29.2597)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342496 #869624
analogous
#244D96 #342496 #6D2496
triadic
#342496 #963424 #249634
tetradic
#342496 #96244D #869624 #24966D
square
#342496 #96244D #869624 #24966D
split-complementary
#342496 #966D24 #4D9624
monochromatic
#120C33 #231865 #342496 #4530C7 #6E5CD8

Accessibility & contrast

On white

11.42
#342496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#342496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342496
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342496#FFFFFF#000000##FFFFFF
##3424961.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003594
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342496;
/* rgb */ color: rgb(52, 36, 150);
/* oklch */ color: oklch(36.5% 0.174 279.7);
Tailwind
colors: {
  custom: {
    50: '#7961b6',
    500: '#342496',
    950: '#000000',
  },
}
SCSS
$custom: #342496;
$custom-light: #7961b6;
$custom-dark: #000000;
JSON
{
  "hex": "#342496",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 248.421,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36547,
    "c": 0.17447,
    "h": 279.7
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#342496
secondary
#AFBD59
accent
#E443CE
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342496

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

Preview Lab → · Contrast checker → · Palette generator →

#342496 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva