#342F78#342F78

#342F78 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.121 H 281.4°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#342F78
RGBrgb(52, 47, 120)
HSLhsl(244, 44%, 33%)
HSVhsv(244, 61%, 47%)
CMYKcmyk(56.7%, 60.8%, 0%, 52.9%)
CIE-LABlab(24.06, 24.42, -41.21)
CIE-LCHlch(24.06, 47.90, 300.65°)
OKLaboklab(35.53% 0.0239 -0.1181)
OKLCHoklch(35.53% 0.121 281.4)
XYZxyz(5.8218, 4.1188, 18.2539)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F78 #73782F
analogous
#2F4E78 #342F78 #592F78
triadic
#342F78 #78342F #2F7834
tetradic
#342F78 #782F4E #73782F #2F7859
square
#342F78 #782F4E #73782F #2F7859
split-complementary
#342F78 #78592F #4E782F
monochromatic
#0E0D20 #211E4C #342F78 #4740A4 #6760C1

Accessibility & contrast

On white

11.51
#342F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#342F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F78
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F78#FFFFFF#000000##FFFFFF
##342F781.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7A
Deuteranopia (green-blind)
#003776
Tritanopia (blue-blind)
#15404E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342f78;
/* rgb */ color: rgb(52, 47, 120);
/* oklch */ color: oklch(35.5% 0.121 281.4);
Tailwind
colors: {
  custom: {
    50: '#7267a0',
    500: '#342f78',
    950: '#000000',
  },
}
SCSS
$custom: #342f78;
$custom-light: #7267a0;
$custom-dark: #000000;
JSON
{
  "hex": "#342f78",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 244.11,
    "s": 43.713,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35534,
    "c": 0.12051,
    "h": 281.4
  },
  "luminance": 0.04119
}

Semantic roles & 50–950 ramp

primary
#342F78
secondary
#A3A85B
accent
#D354CB
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #342F78

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

Preview Lab → · Contrast checker → · Palette generator →

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