#342EAF#342EAF

#342EAF is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.5% C 0.195 H 275.3°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#342EAF
RGBrgb(52, 46, 175)
HSLhsl(243, 58%, 43%)
HSVhsv(243, 74%, 69%)
CMYKcmyk(70.3%, 73.7%, 0%, 31.4%)
CIE-LABlab(28.85, 43.75, -67.26)
CIE-LCHlch(28.85, 80.23, 303.04°)
OKLaboklab(40.53% 0.018 -0.1944)
OKLCHoklch(40.53% 0.195 275.3)
XYZxyz(10.1285, 5.7782, 41.1307)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342EAF #A9AF2E
analogous
#2E68AF #342EAF #742EAF
triadic
#342EAF #AF342E #2EAF34
tetradic
#342EAF #AF2E68 #A9AF2E #2EAF74
square
#342EAF #AF2E68 #A9AF2E #2EAF74
split-complementary
#342EAF #AF742E #68AF2E
monochromatic
#17154E #26217F #342EAF #514BD0 #807BDC

Accessibility & contrast

On white

9.74
#342EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342EAF
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342EAF#FFFFFF#000000##FFFFFF
##342EAF1.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342eaf;
/* rgb */ color: rgb(52, 46, 175);
/* oklch */ color: oklch(40.5% 0.195 275.3);
Tailwind
colors: {
  custom: {
    50: '#7e68c8',
    500: '#342eaf',
    950: '#000000',
  },
}
SCSS
$custom: #342eaf;
$custom-light: #7e68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#342eaf",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 242.791,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40534,
    "c": 0.19526,
    "h": 275.3
  },
  "luminance": 0.05779
}

Semantic roles & 50–950 ramp

primary
#342EAF
secondary
#C1C574
accent
#E246DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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