#342FAE#342FAE

#342FAE is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.6% C 0.193 H 275.2°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#342FAE
RGBrgb(52, 47, 174)
HSLhsl(242, 57%, 43%)
HSVhsv(242, 73%, 68%)
CMYKcmyk(70.1%, 73%, 0%, 31.8%)
CIE-LABlab(28.95, 42.85, -66.49)
CIE-LCHlch(28.95, 79.10, 302.80°)
OKLaboklab(40.58% 0.0176 -0.1922)
OKLCHoklch(40.58% 0.193 275.2)
XYZxyz(10.0702, 5.8181, 40.6285)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FAE #A9AE2F
analogous
#2F69AE #342FAE #732FAE
triadic
#342FAE #AE342F #2FAE34
tetradic
#342FAE #AE2F69 #A9AE2F #2FAE73
square
#342FAE #AE2F69 #A9AE2F #2FAE73
split-complementary
#342FAE #AE732F #69AE2F
monochromatic
#17154E #26227E #342FAE #514CCF #807CDC

Accessibility & contrast

On white

9.71
#342FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#342FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FAE
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FAE#FFFFFF#000000##FFFFFF
##342FAE1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#003EAC
Tritanopia (blue-blind)
#00536B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342fae;
/* rgb */ color: rgb(52, 47, 174);
/* oklch */ color: oklch(40.6% 0.193 275.2);
Tailwind
colors: {
  custom: {
    50: '#7d69c7',
    500: '#342fae',
    950: '#000000',
  },
}
SCSS
$custom: #342fae;
$custom-light: #7d69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#342fae",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 242.362,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40577,
    "c": 0.19301,
    "h": 275.2
  },
  "luminance": 0.05819
}

Semantic roles & 50–950 ramp

primary
#342FAE
secondary
#C1C475
accent
#E147DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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