#342C8F#342C8F

#342C8F is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.157 H 279.1°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#342C8F
RGBrgb(52, 44, 143)
HSLhsl(245, 53%, 37%)
HSVhsv(245, 69%, 56%)
CMYKcmyk(63.6%, 69.2%, 0%, 43.9%)
CIE-LABlab(25.30, 34.25, -53.61)
CIE-LCHlch(25.30, 63.62, 302.57°)
OKLaboklab(37.05% 0.0248 -0.1545)
OKLCHoklch(37.05% 0.157 279.1)
XYZxyz(7.2732, 4.5140, 26.4693)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C8F #878F2C
analogous
#2C568F #342C8F #662C8F
triadic
#342C8F #8F342C #2C8F34
tetradic
#342C8F #8F2C56 #878F2C #2C8F66
square
#342C8F #8F2C56 #878F2C #2C8F66
split-complementary
#342C8F #8F662C #568F2C
monochromatic
#120F31 #231E60 #342C8F #453ABE #6E66D0

Accessibility & contrast

On white

11.04
#342C8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#342C8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C8F
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C8F#FFFFFF#000000##FFFFFF
##342C8F1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004092
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342c8f;
/* rgb */ color: rgb(52, 44, 143);
/* oklch */ color: oklch(37.1% 0.157 279.1);
Tailwind
colors: {
  custom: {
    50: '#7766b1',
    500: '#342c8f',
    950: '#000000',
  },
}
SCSS
$custom: #342c8f;
$custom-light: #7766b1;
$custom-dark: #000000;
JSON
{
  "hex": "#342c8f",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 143
  },
  "hsl": {
    "h": 244.848,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37054,
    "c": 0.15653,
    "h": 279.1
  },
  "luminance": 0.04515
}

Semantic roles & 50–950 ramp

primary
#342C8F
secondary
#AFB661
accent
#DC4BD1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342C8F

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

Preview Lab → · Contrast checker → · Palette generator →

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