#342D72#342D72

#342D72 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.7% C 0.115 H 283.2°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#342D72
RGBrgb(52, 45, 114)
HSLhsl(246, 43%, 31%)
HSVhsv(246, 61%, 45%)
CMYKcmyk(54.4%, 60.5%, 0%, 55.3%)
CIE-LABlab(23.07, 23.69, -38.98)
CIE-LCHlch(23.07, 45.62, 301.29°)
OKLaboklab(34.66% 0.0262 -0.1116)
OKLCHoklch(34.66% 0.115 283.2)
XYZxyz(5.3909, 3.8214, 16.3699)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D72 #6B722D
analogous
#2D4872 #342D72 #562D72
triadic
#342D72 #72342D #2D7234
tetradic
#342D72 #722D48 #6B722D #2D7256
square
#342D72 #722D48 #6B722D #2D7256
split-complementary
#342D72 #72562D #48722D
monochromatic
#0C0A1A #201C46 #342D72 #483E9E #655BBE

Accessibility & contrast

On white

11.90
#342D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#342D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D72
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D72#FFFFFF#000000##FFFFFF
##342D721.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#1B3D4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342d72;
/* rgb */ color: rgb(52, 45, 114);
/* oklch */ color: oklch(34.7% 0.115 283.2);
Tailwind
colors: {
  custom: {
    50: '#71669b',
    500: '#342d72',
    950: '#000000',
  },
}
SCSS
$custom: #342d72;
$custom-light: #71669b;
$custom-dark: #000000;
JSON
{
  "hex": "#342d72",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 246.087,
    "s": 43.396,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34656,
    "c": 0.11461,
    "h": 283.2
  },
  "luminance": 0.03822
}

Semantic roles & 50–950 ramp

primary
#342D72
secondary
#9CA357
accent
#D355C6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #342D72

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

Preview Lab → · Contrast checker → · Palette generator →

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