#342F74#342F74

#342F74 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.2% C 0.115 H 282.0°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#342F74
RGBrgb(52, 47, 116)
HSLhsl(244, 42%, 32%)
HSVhsv(244, 59%, 45%)
CMYKcmyk(55.2%, 59.5%, 0%, 54.5%)
CIE-LABlab(23.75, 23.04, -39.16)
CIE-LCHlch(23.75, 45.44, 300.47°)
OKLaboklab(35.21% 0.0239 -0.1121)
OKLCHoklch(35.21% 0.115 282)
XYZxyz(5.5841, 4.0237, 17.0020)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F74 #6F742F
analogous
#2F4D74 #342F74 #572F74
triadic
#342F74 #74342F #2F7434
tetradic
#342F74 #742F4D #6F742F #2F7457
square
#342F74 #742F4D #6F742F #2F7457
split-complementary
#342F74 #74572F #4D742F
monochromatic
#0D0C1D #201D48 #342F74 #4841A0 #665FBE

Accessibility & contrast

On white

11.64
#342F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#342F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F74
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F74#FFFFFF#000000##FFFFFF
##342F741.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B76
Deuteranopia (green-blind)
#003673
Tritanopia (blue-blind)
#193F4C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342f74;
/* rgb */ color: rgb(52, 47, 116);
/* oklch */ color: oklch(35.2% 0.115 282.0);
Tailwind
colors: {
  custom: {
    50: '#71679d',
    500: '#342f74',
    950: '#000000',
  },
}
SCSS
$custom: #342f74;
$custom-light: #71679d;
$custom-dark: #000000;
JSON
{
  "hex": "#342f74",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 244.348,
    "s": 42.331,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35206,
    "c": 0.11462,
    "h": 282
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#342F74
secondary
#A0A55A
accent
#D256C9
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #342F74

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

Preview Lab → · Contrast checker → · Palette generator →

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