#342E79#342E79

#342E79 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.4% C 0.123 H 281.7°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#342E79
RGBrgb(52, 46, 121)
HSLhsl(245, 45%, 33%)
HSVhsv(245, 62%, 47%)
CMYKcmyk(57%, 62%, 0%, 52.5%)
CIE-LABlab(23.88, 25.43, -42.13)
CIE-LCHlch(23.88, 49.21, 301.11°)
OKLaboklab(35.43% 0.025 -0.1208)
OKLCHoklch(35.43% 0.123 281.7)
XYZxyz(5.8433, 4.0642, 18.5620)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E79 #73792E
analogous
#2E4D79 #342E79 #592E79
triadic
#342E79 #79342E #2E7934
tetradic
#342E79 #792E4D #73792E #2E7959
square
#342E79 #792E4D #73792E #2E7959
split-complementary
#342E79 #79592E #4D792E
monochromatic
#0E0C20 #211D4D #342E79 #473FA5 #675FC2

Accessibility & contrast

On white

11.58
#342E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E79
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E79#FFFFFF#000000##FFFFFF
##342E791.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7B
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#14404E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342e79;
/* rgb */ color: rgb(52, 46, 121);
/* oklch */ color: oklch(35.4% 0.123 281.7);
Tailwind
colors: {
  custom: {
    50: '#7267a0',
    500: '#342e79',
    950: '#000000',
  },
}
SCSS
$custom: #342e79;
$custom-light: #7267a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342e79",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 121
  },
  "hsl": {
    "h": 244.8,
    "s": 44.91,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35428,
    "c": 0.12339,
    "h": 281.7
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#342E79
secondary
#A3A95A
accent
#D553CA
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #342E79

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

Preview Lab → · Contrast checker → · Palette generator →

#342E79 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva