#342296#342296

#342296 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.176 H 280.0°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#342296
RGBrgb(52, 34, 150)
HSLhsl(249, 63%, 36%)
HSVhsv(249, 77%, 59%)
CMYKcmyk(65.3%, 77.3%, 0%, 41.2%)
CIE-LABlab(23.92, 42.31, -60.21)
CIE-LCHlch(23.92, 73.59, 305.10°)
OKLaboklab(36.28% 0.0307 -0.1738)
OKLCHoklch(36.28% 0.176 280)
XYZxyz(7.4915, 4.0755, 29.2401)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342296 #849622
analogous
#224A96 #342296 #6E2296
triadic
#342296 #963422 #229634
tetradic
#342296 #96224A #849622 #22966E
square
#342296 #96224A #849622 #22966E
split-complementary
#342296 #966E22 #4A9622
monochromatic
#110B32 #231764 #342296 #452DC8 #6D59D9

Accessibility & contrast

On white

11.57
#342296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#342296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342296
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342296#FFFFFF#000000##FFFFFF
##3422961.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342296;
/* rgb */ color: rgb(52, 34, 150);
/* oklch */ color: oklch(36.3% 0.176 280.0);
Tailwind
colors: {
  custom: {
    50: '#7960b6',
    500: '#342296',
    950: '#000000',
  },
}
SCSS
$custom: #342296;
$custom-light: #7960b6;
$custom-dark: #000000;
JSON
{
  "hex": "#342296",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 150
  },
  "hsl": {
    "h": 249.31,
    "s": 63.043,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36279,
    "c": 0.17647,
    "h": 280
  },
  "luminance": 0.04076
}

Semantic roles & 50–950 ramp

primary
#342296
secondary
#AEBE56
accent
#E642CD
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342296

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

Preview Lab → · Contrast checker → · Palette generator →

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