#342999#342999

#342999 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.173 H 278.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#342999
RGBrgb(52, 41, 153)
HSLhsl(246, 58%, 38%)
HSVhsv(246, 73%, 60%)
CMYKcmyk(66%, 73.2%, 0%, 40%)
CIE-LABlab(25.61, 39.38, -59.27)
CIE-LCHlch(25.61, 71.16, 303.60°)
OKLaboklab(37.57% 0.0254 -0.1711)
OKLCHoklch(37.57% 0.173 278.4)
XYZxyz(7.9570, 4.6152, 30.6023)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342999 #8E9929
analogous
#295699 #342999 #6C2999
triadic
#342999 #993429 #299934
tetradic
#342999 #992956 #8E9929 #29996C
square
#342999 #992956 #8E9929 #29996C
split-complementary
#342999 #996C29 #569929
monochromatic
#130F38 #241C69 #342999 #4436C9 #7166D6

Accessibility & contrast

On white

10.92
#342999 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#342999 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342999
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342999#FFFFFF#000000##FFFFFF
##3429991.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342999;
/* rgb */ color: rgb(52, 41, 153);
/* oklch */ color: oklch(37.6% 0.173 278.4);
Tailwind
colors: {
  custom: {
    50: '#7964b8',
    500: '#342999',
    950: '#000000',
  },
}
SCSS
$custom: #342999;
$custom-light: #7964b8;
$custom-dark: #000000;
JSON
{
  "hex": "#342999",
  "rgb": {
    "r": 52,
    "g": 41,
    "b": 153
  },
  "hsl": {
    "h": 245.893,
    "s": 57.732,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37566,
    "c": 0.17296,
    "h": 278.4
  },
  "luminance": 0.04616
}

Semantic roles & 50–950 ramp

primary
#342999
secondary
#B3BC62
accent
#E147D2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #342999

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

Preview Lab → · Contrast checker → · Palette generator →

#342999 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva