#342FBC#342FBC

#342FBC is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.0% C 0.210 H 274.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#342FBC
RGBrgb(52, 47, 188)
HSLhsl(242, 60%, 46%)
HSVhsv(242, 75%, 74%)
CMYKcmyk(72.3%, 75%, 0%, 26.3%)
CIE-LABlab(30.38, 47.42, -72.45)
CIE-LCHlch(30.38, 86.59, 303.21°)
OKLaboklab(42.02% 0.015 -0.2096)
OKLCHoklch(42.02% 0.21 274.1)
XYZxyz(11.5068, 6.3928, 48.1947)
Luminance0.0639 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FBC #B7BC2F
analogous
#2F70BC #342FBC #7A2FBC
triadic
#342FBC #BC342F #2FBC34
tetradic
#342FBC #BC2F70 #B7BC2F #2FBC7A
square
#342FBC #BC2F70 #B7BC2F #2FBC7A
split-complementary
#342FBC #BC7A2F #70BC2F
monochromatic
#19175A #26238B #342FBC #5954D4 #8885E0

Accessibility & contrast

On white

9.22
#342FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#342FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FBC
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FBC#FFFFFF#000000##FFFFFF
##342FBC1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC0
Deuteranopia (green-blind)
#0041B9
Tritanopia (blue-blind)
#005873
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #342fbc;
/* rgb */ color: rgb(52, 47, 188);
/* oklch */ color: oklch(42.0% 0.210 274.1);
Tailwind
colors: {
  custom: {
    50: '#806ad1',
    500: '#342fbc',
    950: '#000000',
  },
}
SCSS
$custom: #342fbc;
$custom-light: #806ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#342fbc",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 188
  },
  "hsl": {
    "h": 242.128,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.42022,
    "c": 0.2101,
    "h": 274.1
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#342FBC
secondary
#C7CA7D
accent
#E345DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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