#342D7C#342D7C

#342D7C is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.129 H 281.6°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#342D7C
RGBrgb(52, 45, 124)
HSLhsl(245, 47%, 33%)
HSVhsv(245, 64%, 49%)
CMYKcmyk(58.1%, 63.7%, 0%, 51.4%)
CIE-LABlab(23.87, 27.12, -44.05)
CIE-LCHlch(23.87, 51.73, 301.62°)
OKLaboklab(35.5% 0.0259 -0.1265)
OKLCHoklch(35.5% 0.129 281.6)
XYZxyz(5.9915, 4.0617, 19.5331)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D7C #757C2D
analogous
#2D4D7C #342D7C #5B2D7C
triadic
#342D7C #7C342D #2D7C34
tetradic
#342D7C #7C2D4D #757C2D #2D7C5B
square
#342D7C #7C2D4D #757C2D #2D7C5B
split-complementary
#342D7C #7C5B2D #4D7C2D
monochromatic
#0E0C22 #211D4F #342D7C #473DA9 #685FC5

Accessibility & contrast

On white

11.59
#342D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342D7C
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D7C#FFFFFF#000000##FFFFFF
##342D7C1.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#104050
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342d7c;
/* rgb */ color: rgb(52, 45, 124);
/* oklch */ color: oklch(35.5% 0.129 281.6);
Tailwind
colors: {
  custom: {
    50: '#7366a3',
    500: '#342d7c',
    950: '#000000',
  },
}
SCSS
$custom: #342d7c;
$custom-light: #7366a3;
$custom-dark: #000000;
JSON
{
  "hex": "#342d7c",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 245.316,
    "s": 46.746,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35499,
    "c": 0.1291,
    "h": 281.6
  },
  "luminance": 0.04062
}

Semantic roles & 50–950 ramp

primary
#342D7C
secondary
#A4AB5A
accent
#D651CB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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