#342B70#342B70

#342B70 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 34.1% C 0.115 H 284.5°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#342B70
RGBrgb(52, 43, 112)
HSLhsl(248, 45%, 30%)
HSVhsv(248, 62%, 44%)
CMYKcmyk(53.6%, 61.6%, 0%, 56.1%)
CIE-LABlab(22.40, 24.34, -38.79)
CIE-LCHlch(22.40, 45.79, 302.12°)
OKLaboklab(34.11% 0.0286 -0.111)
OKLCHoklch(34.11% 0.115 284.5)
XYZxyz(5.2038, 3.6274, 15.7520)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B70 #67702B
analogous
#2B4470 #342B70 #562B70
triadic
#342B70 #70342B #2B7034
tetradic
#342B70 #702B44 #67702B #2B7056
square
#342B70 #702B44 #67702B #2B7056
split-complementary
#342B70 #70562B #44702B
monochromatic
#0B0918 #1F1A44 #342B70 #493C9C #6457BE

Accessibility & contrast

On white

12.17
#342B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#342B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B70
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B70#FFFFFF#000000##FFFFFF
##342B701.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#00336F
Tritanopia (blue-blind)
#1D3B49
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342b70;
/* rgb */ color: rgb(52, 43, 112);
/* oklch */ color: oklch(34.1% 0.115 284.5);
Tailwind
colors: {
  custom: {
    50: '#71649a',
    500: '#342b70',
    950: '#000000',
  },
}
SCSS
$custom: #342b70;
$custom-light: #71649a;
$custom-dark: #000000;
JSON
{
  "hex": "#342b70",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 112
  },
  "hsl": {
    "h": 247.826,
    "s": 44.516,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3411,
    "c": 0.11464,
    "h": 284.5
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#342B70
secondary
#98A255
accent
#D454C3
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342B70

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

Preview Lab → · Contrast checker → · Palette generator →

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