#342B7D#342B7D

#342B7D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.133 H 282.1°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#342B7D
RGBrgb(52, 43, 125)
HSLhsl(247, 49%, 33%)
HSVhsv(247, 66%, 49%)
CMYKcmyk(58.4%, 65.6%, 0%, 51%)
CIE-LABlab(23.47, 28.76, -45.35)
CIE-LCHlch(23.47, 53.70, 302.38°)
OKLaboklab(35.23% 0.0279 -0.1303)
OKLCHoklch(35.23% 0.133 282.1)
XYZxyz(5.9806, 3.9381, 19.8430)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B7D #747D2B
analogous
#2B4B7D #342B7D #5D2B7D
triadic
#342B7D #7D342B #2B7D34
tetradic
#342B7D #7D2B4B #747D2B #2B7D5D
square
#342B7D #7D2B4B #747D2B #2B7D5D
split-complementary
#342B7D #7D5D2B #4B7D2B
monochromatic
#0E0C22 #211B4F #342B7D #473BAB #675CC7

Accessibility & contrast

On white

11.75
#342B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#342B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B7D
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B7D#FFFFFF#000000##FFFFFF
##342B7D1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#0F3F4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342b7d;
/* rgb */ color: rgb(52, 43, 125);
/* oklch */ color: oklch(35.2% 0.133 282.1);
Tailwind
colors: {
  custom: {
    50: '#7365a3',
    500: '#342b7d',
    950: '#000000',
  },
}
SCSS
$custom: #342b7d;
$custom-light: #7365a3;
$custom-dark: #000000;
JSON
{
  "hex": "#342b7d",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 246.585,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35227,
    "c": 0.13325,
    "h": 282.1
  },
  "luminance": 0.03938
}

Semantic roles & 50–950 ramp

primary
#342B7D
secondary
#A3AD57
accent
#D84FC9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09050F
muted
#7B7A7F

Preview Lab

Preview with #342B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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