#342C7E#342C7E

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

Color values

HEX#342C7E
RGBrgb(52, 44, 126)
HSLhsl(246, 48%, 33%)
HSVhsv(246, 65%, 49%)
CMYKcmyk(58.7%, 65.1%, 0%, 50.6%)
CIE-LABlab(23.79, 28.46, -45.44)
CIE-LCHlch(23.79, 53.62, 302.05°)
OKLaboklab(35.49% 0.0268 -0.1306)
OKLCHoklch(35.49% 0.133 281.6)
XYZxyz(6.0816, 4.0374, 20.1934)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C7E #767E2C
analogous
#2C4D7E #342C7E #5D2C7E
triadic
#342C7E #7E342C #2C7E34
tetradic
#342C7E #7E2C4D #767E2C #2C7E5D
square
#342C7E #7E2C4D #767E2C #2C7E5D
split-complementary
#342C7E #7E5D2C #4D7E2C
monochromatic
#0F0C23 #211C51 #342C7E #473CAB #685EC7

Accessibility & contrast

On white

11.62
#342C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342C7E
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C7E#FFFFFF#000000##FFFFFF
##342C7E1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#0D4050
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342c7e;
/* rgb */ color: rgb(52, 44, 126);
/* oklch */ color: oklch(35.5% 0.133 281.6);
Tailwind
colors: {
  custom: {
    50: '#7465a4',
    500: '#342c7e',
    950: '#000000',
  },
}
SCSS
$custom: #342c7e;
$custom-light: #7465a4;
$custom-dark: #000000;
JSON
{
  "hex": "#342c7e",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 126
  },
  "hsl": {
    "h": 245.854,
    "s": 48.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35493,
    "c": 0.1333,
    "h": 281.6
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#342C7E
secondary
#A5AD59
accent
#D850CB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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