#342F7D#342F7D

#342F7D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.128 H 280.7°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#342F7D
RGBrgb(52, 47, 125)
HSLhsl(244, 45%, 34%)
HSVhsv(244, 62%, 49%)
CMYKcmyk(58.4%, 62.4%, 0%, 51%)
CIE-LABlab(24.46, 26.15, -43.73)
CIE-LCHlch(24.46, 50.95, 300.88°)
OKLaboklab(35.96% 0.0237 -0.1255)
OKLCHoklch(35.96% 0.128 280.7)
XYZxyz(6.1332, 4.2434, 19.8939)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F7D #787D2F
analogous
#2F517D #342F7D #5B2F7D
triadic
#342F7D #7D342F #2F7D34
tetradic
#342F7D #7D2F51 #787D2F #2F7D5B
square
#342F7D #7D2F51 #787D2F #2F7D5B
split-complementary
#342F7D #7D5B2F #517D2F
monochromatic
#0F0E24 #211E51 #342F7D #4740A9 #6962C4

Accessibility & contrast

On white

11.36
#342F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#342F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F7D
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F7D#FFFFFF#000000##FFFFFF
##342F7D1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#0E4251
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342f7d;
/* rgb */ color: rgb(52, 47, 125);
/* oklch */ color: oklch(36.0% 0.128 280.7);
Tailwind
colors: {
  custom: {
    50: '#7368a3',
    500: '#342f7d',
    950: '#000000',
  },
}
SCSS
$custom: #342f7d;
$custom-light: #7368a3;
$custom-dark: #000000;
JSON
{
  "hex": "#342f7d",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 125
  },
  "hsl": {
    "h": 243.846,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35955,
    "c": 0.12775,
    "h": 280.7
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#342F7D
secondary
#A6AB5D
accent
#D553CD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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