#342FAC#342FAC

#342FAC is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.4% C 0.191 H 275.4°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#342FAC
RGBrgb(52, 47, 172)
HSLhsl(242, 57%, 43%)
HSVhsv(242, 73%, 67%)
CMYKcmyk(69.8%, 72.7%, 0%, 32.5%)
CIE-LABlab(28.75, 42.19, -65.62)
CIE-LCHlch(28.75, 78.01, 302.74°)
OKLaboklab(40.37% 0.018 -0.1897)
OKLCHoklch(40.37% 0.191 275.4)
XYZxyz(9.8766, 5.7407, 39.6093)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FAC #A7AC2F
analogous
#2F68AC #342FAC #722FAC
triadic
#342FAC #AC342F #2FAC34
tetradic
#342FAC #AC2F68 #A7AC2F #2FAC72
square
#342FAC #AC2F68 #A7AC2F #2FAC72
split-complementary
#342FAC #AC722F #68AC2F
monochromatic
#17154C #25227C #342FAC #504BCE #7E7BDB

Accessibility & contrast

On white

9.77
#342FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#342FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FAC
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FAC#FFFFFF#000000##FFFFFF
##342FAC1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342fac;
/* rgb */ color: rgb(52, 47, 172);
/* oklch */ color: oklch(40.4% 0.191 275.4);
Tailwind
colors: {
  custom: {
    50: '#7d69c6',
    500: '#342fac',
    950: '#000000',
  },
}
SCSS
$custom: #342fac;
$custom-light: #7d69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#342fac",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 172
  },
  "hsl": {
    "h": 242.4,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40374,
    "c": 0.19051,
    "h": 275.4
  },
  "luminance": 0.05742
}

Semantic roles & 50–950 ramp

primary
#342FAC
secondary
#C0C374
accent
#E047DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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