#342F75#342F75

#342F75 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.3% C 0.116 H 281.9°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#342F75
RGBrgb(52, 47, 117)
HSLhsl(244, 43%, 32%)
HSVhsv(244, 60%, 46%)
CMYKcmyk(55.6%, 59.8%, 0%, 54.1%)
CIE-LABlab(23.83, 23.39, -39.68)
CIE-LCHlch(23.83, 46.06, 300.51°)
OKLaboklab(35.29% 0.0239 -0.1136)
OKLCHoklch(35.29% 0.116 281.9)
XYZxyz(5.6426, 4.0471, 17.3100)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F75 #70752F
analogous
#2F4D75 #342F75 #572F75
triadic
#342F75 #75342F #2F7534
tetradic
#342F75 #752F4D #70752F #2F7557
square
#342F75 #752F4D #70752F #2F7557
split-complementary
#342F75 #75572F #4D752F
monochromatic
#0D0C1E #211D49 #342F75 #4741A1 #665FBF

Accessibility & contrast

On white

11.61
#342F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F75
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F75#FFFFFF#000000##FFFFFF
##342F751.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B77
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#183F4D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342f75;
/* rgb */ color: rgb(52, 47, 117);
/* oklch */ color: oklch(35.3% 0.116 281.9);
Tailwind
colors: {
  custom: {
    50: '#72679d',
    500: '#342f75',
    950: '#000000',
  },
}
SCSS
$custom: #342f75;
$custom-light: #72679d;
$custom-dark: #000000;
JSON
{
  "hex": "#342f75",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 117
  },
  "hsl": {
    "h": 244.286,
    "s": 42.683,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35287,
    "c": 0.11609,
    "h": 281.9
  },
  "luminance": 0.04047
}

Semantic roles & 50–950 ramp

primary
#342F75
secondary
#A0A65A
accent
#D255CA
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #342F75

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

Preview Lab → · Contrast checker → · Palette generator →

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