#342295#342295

#342295 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.175 H 280.2°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#342295
RGBrgb(52, 34, 149)
HSLhsl(249, 63%, 36%)
HSVhsv(249, 77%, 58%)
CMYKcmyk(65.1%, 77.2%, 0%, 41.6%)
CIE-LABlab(23.81, 41.99, -59.76)
CIE-LCHlch(23.81, 73.04, 305.10°)
OKLaboklab(36.17% 0.0309 -0.1725)
OKLCHoklch(36.17% 0.175 280.2)
XYZxyz(7.4113, 4.0435, 28.8179)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342295 #839522
analogous
#224995 #342295 #6D2295
triadic
#342295 #953422 #229534
tetradic
#342295 #952249 #839522 #22956D
square
#342295 #952249 #839522 #22956D
split-complementary
#342295 #956D22 #499522
monochromatic
#110B31 #231763 #342295 #452DC7 #6D58D9

Accessibility & contrast

On white

11.61
#342295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342295
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342295#FFFFFF#000000##FFFFFF
##3422951.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342295;
/* rgb */ color: rgb(52, 34, 149);
/* oklch */ color: oklch(36.2% 0.175 280.2);
Tailwind
colors: {
  custom: {
    50: '#7960b5',
    500: '#342295',
    950: '#000000',
  },
}
SCSS
$custom: #342295;
$custom-light: #7960b5;
$custom-dark: #000000;
JSON
{
  "hex": "#342295",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 249.391,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36174,
    "c": 0.17524,
    "h": 280.2
  },
  "luminance": 0.04044
}

Semantic roles & 50–950 ramp

primary
#342295
secondary
#ADBD56
accent
#E642CC
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342295

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

Preview Lab → · Contrast checker → · Palette generator →

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