#342CB1#342CB1

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

Color values

HEX#342CB1
RGBrgb(52, 44, 177)
HSLhsl(244, 60%, 43%)
HSVhsv(244, 75%, 69%)
CMYKcmyk(70.6%, 75.1%, 0%, 30.6%)
CIE-LABlab(28.66, 45.52, -68.77)
CIE-LCHlch(28.66, 82.47, 303.50°)
OKLaboklab(40.46% 0.0187 -0.1988)
OKLCHoklch(40.46% 0.2 275.4)
XYZxyz(10.2501, 5.7048, 42.1474)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342CB1 #A9B12C
analogous
#2C66B1 #342CB1 #762CB1
triadic
#342CB1 #B1342C #2CB134
tetradic
#342CB1 #B12C66 #A9B12C #2CB176
square
#342CB1 #B12C66 #A9B12C #2CB176
split-complementary
#342CB1 #B1762C #66B12C
monochromatic
#17144F #262080 #342CB1 #5149D2 #807ADE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##342CB1#FFFFFF#000000##FFFFFF
##342CB11.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)
#0049B5
Deuteranopia (green-blind)
#003DAF
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342cb1;
/* rgb */ color: rgb(52, 44, 177);
/* oklch */ color: oklch(40.5% 0.200 275.4);
Tailwind
colors: {
  custom: {
    50: '#7e67ca',
    500: '#342cb1',
    950: '#000000',
  },
}
SCSS
$custom: #342cb1;
$custom-light: #7e67ca;
$custom-dark: #000000;
JSON
{
  "hex": "#342cb1",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 243.609,
    "s": 60.181,
    "l": 43.333
  },
  "oklch": {
    "l": 0.4046,
    "c": 0.1997,
    "h": 275.4
  },
  "luminance": 0.05706
}

Semantic roles & 50–950 ramp

primary
#342CB1
secondary
#C1C673
accent
#E344DA
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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