#342195#342195

#342195 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.176 H 280.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#342195
RGBrgb(52, 33, 149)
HSLhsl(250, 64%, 36%)
HSVhsv(250, 78%, 58%)
CMYKcmyk(65.1%, 77.9%, 0%, 41.6%)
CIE-LABlab(23.63, 42.53, -60.07)
CIE-LCHlch(23.63, 73.60, 305.30°)
OKLaboklab(36.04% 0.0316 -0.1734)
OKLCHoklch(36.04% 0.176 280.3)
XYZxyz(7.3831, 3.9871, 28.8085)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342195 #829521
analogous
#214895 #342195 #6E2195
triadic
#342195 #953421 #219534
tetradic
#342195 #952148 #829521 #21956E
square
#342195 #952148 #829521 #21956E
split-complementary
#342195 #956E21 #489521
monochromatic
#110B31 #231663 #342195 #452CC7 #6C57DA

Accessibility & contrast

On white

11.68
#342195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#342195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342195
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342195#FFFFFF#000000##FFFFFF
##3421951.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342195;
/* rgb */ color: rgb(52, 33, 149);
/* oklch */ color: oklch(36.0% 0.176 280.3);
Tailwind
colors: {
  custom: {
    50: '#795fb5',
    500: '#342195',
    950: '#000000',
  },
}
SCSS
$custom: #342195;
$custom-light: #795fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#342195",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 249.828,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36044,
    "c": 0.17623,
    "h": 280.3
  },
  "luminance": 0.03988
}

Semantic roles & 50–950 ramp

primary
#342195
secondary
#ACBE54
accent
#E741CC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #342195

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

Preview Lab → · Contrast checker → · Palette generator →

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