#342F7C#342F7C

#342F7C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.126 H 280.8°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#342F7C
RGBrgb(52, 47, 124)
HSLhsl(244, 45%, 34%)
HSVhsv(244, 62%, 49%)
CMYKcmyk(58.1%, 62.1%, 0%, 51.4%)
CIE-LABlab(24.38, 25.81, -43.23)
CIE-LCHlch(24.38, 50.35, 300.83°)
OKLaboklab(35.87% 0.0238 -0.124)
OKLCHoklch(35.87% 0.126 280.8)
XYZxyz(6.0696, 4.2179, 19.5592)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F7C #777C2F
analogous
#2F507C #342F7C #5A2F7C
triadic
#342F7C #7C342F #2F7C34
tetradic
#342F7C #7C2F50 #777C2F #2F7C5A
square
#342F7C #7C2F50 #777C2F #2F7C5A
split-complementary
#342F7C #7C5A2F #507C2F
monochromatic
#0F0D23 #211E50 #342F7C #4740A8 #6862C3

Accessibility & contrast

On white

11.39
#342F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#342F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F7C
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F7C#FFFFFF#000000##FFFFFF
##342F7C1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#0F4150
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #342f7c;
/* rgb */ color: rgb(52, 47, 124);
/* oklch */ color: oklch(35.9% 0.126 280.8);
Tailwind
colors: {
  custom: {
    50: '#7368a3',
    500: '#342f7c',
    950: '#000000',
  },
}
SCSS
$custom: #342f7c;
$custom-light: #7368a3;
$custom-dark: #000000;
JSON
{
  "hex": "#342f7c",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 124
  },
  "hsl": {
    "h": 243.896,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3587,
    "c": 0.1263,
    "h": 280.8
  },
  "luminance": 0.04218
}

Semantic roles & 50–950 ramp

primary
#342F7C
secondary
#A5AA5C
accent
#D553CC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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