#342789#342789

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

Color values

HEX#342789
RGBrgb(52, 39, 137)
HSLhsl(248, 56%, 35%)
HSVhsv(248, 72%, 54%)
CMYKcmyk(62%, 71.5%, 0%, 46.3%)
CIE-LABlab(23.63, 35.28, -52.62)
CIE-LCHlch(23.63, 63.36, 303.84°)
OKLaboklab(35.68% 0.0299 -0.1516)
OKLCHoklch(35.68% 0.155 281.2)
XYZxyz(6.6556, 3.9868, 24.0809)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342789 #7C8927
analogous
#274B89 #342789 #652789
triadic
#342789 #893427 #278934
tetradic
#342789 #89274B #7C8927 #278965
square
#342789 #89274B #7C8927 #278965
split-complementary
#342789 #896527 #4B8927
monochromatic
#100C2A #221959 #342789 #4635B9 #6A5AD0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342789#FFFFFF#000000##FFFFFF
##3427891.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)
#003C8C
Deuteranopia (green-blind)
#003587
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342789;
/* rgb */ color: rgb(52, 39, 137);
/* oklch */ color: oklch(35.7% 0.155 281.2);
Tailwind
colors: {
  custom: {
    50: '#7662ac',
    500: '#342789',
    950: '#000000',
  },
}
SCSS
$custom: #342789;
$custom-light: #7662ac;
$custom-dark: #000000;
JSON
{
  "hex": "#342789",
  "rgb": {
    "r": 52,
    "g": 39,
    "b": 137
  },
  "hsl": {
    "h": 247.959,
    "s": 55.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35678,
    "c": 0.15458,
    "h": 281.2
  },
  "luminance": 0.03987
}

Semantic roles & 50–950 ramp

primary
#342789
secondary
#A9B557
accent
#DF49CB
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342789

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

Preview Lab → · Contrast checker → · Palette generator →

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