#342C8A#342C8A

#342C8A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.6% C 0.150 H 279.8°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#342C8A
RGBrgb(52, 44, 138)
HSLhsl(245, 52%, 36%)
HSVhsv(245, 68%, 54%)
CMYKcmyk(62.3%, 68.1%, 0%, 45.9%)
CIE-LABlab(24.85, 32.55, -51.25)
CIE-LCHlch(24.85, 60.71, 302.42°)
OKLaboklab(36.58% 0.0255 -0.1476)
OKLCHoklch(36.58% 0.15 279.8)
XYZxyz(6.9028, 4.3659, 24.5188)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C8A #828A2C
analogous
#2C538A #342C8A #632C8A
triadic
#342C8A #8A342C #2C8A34
tetradic
#342C8A #8A2C53 #828A2C #2C8A63
square
#342C8A #8A2C53 #828A2C #2C8A63
split-complementary
#342C8A #8A632C #538A2C
monochromatic
#110E2D #231D5C #342C8A #453BB8 #6C63CD

Accessibility & contrast

On white

11.21
#342C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#342C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C8A
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C8A#FFFFFF#000000##FFFFFF
##342C8A1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004457
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #342c8a;
/* rgb */ color: rgb(52, 44, 138);
/* oklch */ color: oklch(36.6% 0.150 279.8);
Tailwind
colors: {
  custom: {
    50: '#7666ad',
    500: '#342c8a',
    950: '#000000',
  },
}
SCSS
$custom: #342c8a;
$custom-light: #7666ad;
$custom-dark: #000000;
JSON
{
  "hex": "#342c8a",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 245.106,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36584,
    "c": 0.14983,
    "h": 279.8
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

primary
#342C8A
secondary
#ACB45E
accent
#DB4DCF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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