#342CB0#342CB0

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

Color values

HEX#342CB0
RGBrgb(52, 44, 176)
HSLhsl(244, 60%, 43%)
HSVhsv(244, 75%, 69%)
CMYKcmyk(70.5%, 75%, 0%, 31%)
CIE-LABlab(28.55, 45.19, -68.34)
CIE-LCHlch(28.55, 81.93, 303.48°)
OKLaboklab(40.36% 0.0189 -0.1976)
OKLCHoklch(40.36% 0.198 275.5)
XYZxyz(10.1507, 5.6651, 41.6244)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CB0 #A8B02C
analogous
#2C66B0 #342CB0 #762CB0
triadic
#342CB0 #B0342C #2CB034
tetradic
#342CB0 #B02C66 #A8B02C #2CB076
square
#342CB0 #B02C66 #A8B02C #2CB076
split-complementary
#342CB0 #B0762C #66B02C
monochromatic
#17144E #26207F #342CB0 #5048D1 #7F79DD

Accessibility & contrast

On white

9.84
#342CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342CB0
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342CB0#FFFFFF#000000##FFFFFF
##342CB01.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B4
Deuteranopia (green-blind)
#003DAE
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #342cb0;
/* rgb */ color: rgb(52, 44, 176);
/* oklch */ color: oklch(40.4% 0.198 275.5);
Tailwind
colors: {
  custom: {
    50: '#7e67c9',
    500: '#342cb0',
    950: '#000000',
  },
}
SCSS
$custom: #342cb0;
$custom-light: #7e67c9;
$custom-dark: #000000;
JSON
{
  "hex": "#342cb0",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 176
  },
  "hsl": {
    "h": 243.636,
    "s": 60,
    "l": 43.137
  },
  "oklch": {
    "l": 0.40355,
    "c": 0.19848,
    "h": 275.5
  },
  "luminance": 0.05666
}

Semantic roles & 50–950 ramp

primary
#342CB0
secondary
#C0C672
accent
#E345DA
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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