#342CB3#342CB3

#342CB3 is a dark, highly saturated blue. Relative luminance 0.058; OKLCH L 40.7% C 0.202 H 275.2°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#342CB3
RGBrgb(52, 44, 179)
HSLhsl(244, 61%, 44%)
HSVhsv(244, 75%, 70%)
CMYKcmyk(70.9%, 75.4%, 0%, 29.8%)
CIE-LABlab(28.86, 46.16, -69.62)
CIE-LCHlch(28.86, 83.53, 303.55°)
OKLaboklab(40.67% 0.0183 -0.2013)
OKLCHoklch(40.67% 0.202 275.2)
XYZxyz(10.4509, 5.7851, 43.2050)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CB3 #ABB32C
analogous
#2C67B3 #342CB3 #772CB3
triadic
#342CB3 #B3342C #2CB334
tetradic
#342CB3 #B32C67 #ABB32C #2CB377
square
#342CB3 #B32C67 #ABB32C #2CB377
split-complementary
#342CB3 #B3772C #67B32C
monochromatic
#171451 #262082 #342CB3 #524AD2 #817BDF

Accessibility & contrast

On white

9.73
#342CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342CB3
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CB3#FFFFFF#000000##FFFFFF
##342CB31.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB7
Deuteranopia (green-blind)
#003EB1
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342cb3;
/* rgb */ color: rgb(52, 44, 179);
/* oklch */ color: oklch(40.7% 0.202 275.2);
Tailwind
colors: {
  custom: {
    50: '#7f67cb',
    500: '#342cb3',
    950: '#000000',
  },
}
SCSS
$custom: #342cb3;
$custom-light: #7f67cb;
$custom-dark: #000000;
JSON
{
  "hex": "#342cb3",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 179
  },
  "hsl": {
    "h": 243.556,
    "s": 60.538,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40669,
    "c": 0.20212,
    "h": 275.2
  },
  "luminance": 0.05786
}

Semantic roles & 50–950 ramp

primary
#342CB3
secondary
#C2C774
accent
#E444DA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #342CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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