#342BC5#342BC5

#342BC5 is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.5% C 0.224 H 273.8°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#342BC5
RGBrgb(52, 43, 197)
HSLhsl(244, 64%, 47%)
HSVhsv(244, 78%, 77%)
CMYKcmyk(73.6%, 78.2%, 0%, 22.7%)
CIE-LABlab(30.61, 52.37, -77.37)
CIE-LCHlch(30.61, 93.43, 304.09°)
OKLaboklab(42.47% 0.0148 -0.2238)
OKLCHoklch(42.47% 0.224 273.8)
XYZxyz(12.3547, 6.4878, 53.4136)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342BC5 #BCC52B
analogous
#2B6FC5 #342BC5 #812BC5
triadic
#342BC5 #C5342B #2BC534
tetradic
#342BC5 #C52B6F #BCC52B #2BC581
square
#342BC5 #C52B6F #BCC52B #2BC581
split-complementary
#342BC5 #C5812B #6FC52B
monochromatic
#191561 #272093 #342BC5 #5B54DA #8B86E5

Accessibility & contrast

On white

9.14
#342BC5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#342BC5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342BC5
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342BC5#FFFFFF#000000##FFFFFF
##342BC51.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FC9
Deuteranopia (green-blind)
#0041C2
Tritanopia (blue-blind)
#005A78
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #342bc5;
/* rgb */ color: rgb(52, 43, 197);
/* oklch */ color: oklch(42.5% 0.224 273.8);
Tailwind
colors: {
  custom: {
    50: '#8368d8',
    500: '#342bc5',
    950: '#000000',
  },
}
SCSS
$custom: #342bc5;
$custom-light: #8368d8;
$custom-dark: #000000;
JSON
{
  "hex": "#342bc5",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 197
  },
  "hsl": {
    "h": 243.506,
    "s": 64.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.42467,
    "c": 0.22432,
    "h": 273.8
  },
  "luminance": 0.06489
}

Semantic roles & 50–950 ramp

primary
#342BC5
secondary
#C9CE7E
accent
#E741DD
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0D0615
muted
#7D7A83

Preview Lab

Preview with #342BC5

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

Preview Lab → · Contrast checker → · Palette generator →

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