#342DAF#342DAF

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

Color values

HEX#342DAF
RGBrgb(52, 45, 175)
HSLhsl(243, 59%, 43%)
HSVhsv(243, 74%, 69%)
CMYKcmyk(70.3%, 74.3%, 0%, 31.4%)
CIE-LABlab(28.65, 44.31, -67.59)
CIE-LCHlch(28.65, 80.82, 303.25°)
OKLaboklab(40.39% 0.0186 -0.1954)
OKLCHoklch(40.39% 0.196 275.4)
XYZxyz(10.0899, 5.7010, 41.1178)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342DAF #A8AF2D
analogous
#2D67AF #342DAF #752DAF
triadic
#342DAF #AF342D #2DAF34
tetradic
#342DAF #AF2D67 #A8AF2D #2DAF75
square
#342DAF #AF2D67 #A8AF2D #2DAF75
split-complementary
#342DAF #AF752D #67AF2D
monochromatic
#17144E #26207E #342DAF #5049D0 #7F7ADD

Accessibility & contrast

On white

9.81
#342DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#342DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342DAF
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342DAF#FFFFFF#000000##FFFFFF
##342DAF1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003EAD
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342daf;
/* rgb */ color: rgb(52, 45, 175);
/* oklch */ color: oklch(40.4% 0.196 275.4);
Tailwind
colors: {
  custom: {
    50: '#7e68c8',
    500: '#342daf',
    950: '#000000',
  },
}
SCSS
$custom: #342daf;
$custom-light: #7e68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#342daf",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 243.231,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40391,
    "c": 0.19627,
    "h": 275.4
  },
  "luminance": 0.05702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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