#342CAF#342CAF

#342CAF is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.3% C 0.197 H 275.6°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#342CAF
RGBrgb(52, 44, 175)
HSLhsl(244, 60%, 43%)
HSVhsv(244, 75%, 69%)
CMYKcmyk(70.3%, 74.9%, 0%, 31.4%)
CIE-LABlab(28.45, 44.87, -67.91)
CIE-LCHlch(28.45, 81.40, 303.45°)
OKLaboklab(40.25% 0.0191 -0.1963)
OKLCHoklch(40.25% 0.197 275.6)
XYZxyz(10.0522, 5.6256, 41.1052)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CAF #A7AF2C
analogous
#2C65AF #342CAF #752CAF
triadic
#342CAF #AF342C #2CAF34
tetradic
#342CAF #AF2C65 #A7AF2C #2CAF75
square
#342CAF #AF2C65 #A7AF2C #2CAF75
split-complementary
#342CAF #AF752C #65AF2C
monochromatic
#17134D #25207E #342CAF #5047D1 #7E78DD

Accessibility & contrast

On white

9.88
#342CAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#342CAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342CAF
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CAF#FFFFFF#000000##FFFFFF
##342CAF1.009.882.139.88
#FFFFFF9.881.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00526B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342caf;
/* rgb */ color: rgb(52, 44, 175);
/* oklch */ color: oklch(40.3% 0.197 275.6);
Tailwind
colors: {
  custom: {
    50: '#7e67c8',
    500: '#342caf',
    950: '#000000',
  },
}
SCSS
$custom: #342caf;
$custom-light: #7e67c8;
$custom-dark: #000000;
JSON
{
  "hex": "#342caf",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 175
  },
  "hsl": {
    "h": 243.664,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40251,
    "c": 0.19726,
    "h": 275.6
  },
  "luminance": 0.05627
}

Semantic roles & 50–950 ramp

primary
#342CAF
secondary
#C0C572
accent
#E345D9
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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