#342979#342979

#342979 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.130 H 283.4°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#342979
RGBrgb(52, 41, 121)
HSLhsl(248, 49%, 32%)
HSVhsv(248, 66%, 47%)
CMYKcmyk(57%, 66.1%, 0%, 52.5%)
CIE-LABlab(22.64, 28.69, -44.15)
CIE-LCHlch(22.64, 52.66, 303.02°)
OKLaboklab(34.52% 0.0303 -0.1268)
OKLCHoklch(34.52% 0.13 283.4)
XYZxyz(5.6592, 3.6961, 18.5007)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342979 #6E7929
analogous
#294679 #342979 #5C2979
triadic
#342979 #793429 #297934
tetradic
#342979 #792946 #6E7929 #29795C
square
#342979 #792946 #6E7929 #29795C
split-complementary
#342979 #795C29 #467929
monochromatic
#0D0A1E #201A4B #342979 #4838A7 #6656C6

Accessibility & contrast

On white

12.07
#342979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#342979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342979
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342979#FFFFFF#000000##FFFFFF
##3429791.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003377
Tritanopia (blue-blind)
#143D4D
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342979;
/* rgb */ color: rgb(52, 41, 121);
/* oklch */ color: oklch(34.5% 0.130 283.4);
Tailwind
colors: {
  custom: {
    50: '#7363a0',
    500: '#342979',
    950: '#000000',
  },
}
SCSS
$custom: #342979;
$custom-light: #7363a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342979",
  "rgb": {
    "r": 52,
    "g": 41,
    "b": 121
  },
  "hsl": {
    "h": 248.25,
    "s": 49.383,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34519,
    "c": 0.13037,
    "h": 283.4
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#342979
secondary
#9FAB53
accent
#D94FC6
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050F
muted
#7B797E

Preview Lab

Preview with #342979

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

Preview Lab → · Contrast checker → · Palette generator →

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