#342C9F#342C9F

#342C9F is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.177 H 277.2°. Best body text is #FFFFFF at 10.46:1 contrast (WCAG AA passes).

Color values

HEX#342C9F
RGBrgb(52, 44, 159)
HSLhsl(244, 57%, 40%)
HSVhsv(244, 72%, 62%)
CMYKcmyk(67.3%, 72.3%, 0%, 37.6%)
CIE-LABlab(26.83, 39.62, -60.92)
CIE-LCHlch(26.83, 72.67, 303.04°)
OKLaboklab(38.62% 0.0222 -0.1759)
OKLCHoklch(38.62% 0.177 277.2)
XYZxyz(8.5728, 5.0339, 33.3140)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342C9F #979F2C
analogous
#2C5E9F #342C9F #6E2C9F
triadic
#342C9F #9F342C #2C9F34
tetradic
#342C9F #9F2C5E #979F2C #2C9F6E
square
#342C9F #9F2C5E #979F2C #2C9F6E
split-complementary
#342C9F #9F6E2C #5E9F2C
monochromatic
#15113F #241F6F #342C9F #483ECA #766ED7

Accessibility & contrast

On white

10.46
#342C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#342C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342C9F
10.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342C9F#FFFFFF#000000##FFFFFF
##342C9F1.0010.462.0110.46
#FFFFFF10.461.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003A9D
Tritanopia (blue-blind)
#004C62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #342c9f;
/* rgb */ color: rgb(52, 44, 159);
/* oklch */ color: oklch(38.6% 0.177 277.2);
Tailwind
colors: {
  custom: {
    50: '#7a67bc',
    500: '#342c9f',
    950: '#000000',
  },
}
SCSS
$custom: #342c9f;
$custom-light: #7a67bc;
$custom-dark: #000000;
JSON
{
  "hex": "#342c9f",
  "rgb": {
    "r": 52,
    "g": 44,
    "b": 159
  },
  "hsl": {
    "h": 244.174,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38617,
    "c": 0.17733,
    "h": 277.2
  },
  "luminance": 0.05035
}

Semantic roles & 50–950 ramp

primary
#342C9F
secondary
#B8BE69
accent
#E048D5
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #342C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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