#342897#342897

#342897 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.172 H 278.9°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#342897
RGBrgb(52, 40, 151)
HSLhsl(246, 58%, 37%)
HSVhsv(246, 74%, 59%)
CMYKcmyk(65.6%, 73.5%, 0%, 40.8%)
CIE-LABlab(25.20, 39.30, -58.71)
CIE-LCHlch(25.20, 70.65, 303.80°)
OKLaboklab(37.22% 0.0265 -0.1694)
OKLCHoklch(37.22% 0.172 278.9)
XYZxyz(7.7591, 4.4814, 29.7283)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342897 #8B9728
analogous
#285497 #342897 #6B2897
triadic
#342897 #973428 #289734
tetradic
#342897 #972854 #8B9728 #28976B
square
#342897 #972854 #8B9728 #28976B
split-complementary
#342897 #976B28 #549728
monochromatic
#130E36 #231B67 #342897 #4535C7 #7064D6

Accessibility & contrast

On white

11.07
#342897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#342897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342897
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342897#FFFFFF#000000##FFFFFF
##3428971.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00475D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342897;
/* rgb */ color: rgb(52, 40, 151);
/* oklch */ color: oklch(37.2% 0.172 278.9);
Tailwind
colors: {
  custom: {
    50: '#7964b7',
    500: '#342897',
    950: '#000000',
  },
}
SCSS
$custom: #342897;
$custom-light: #7964b7;
$custom-dark: #000000;
JSON
{
  "hex": "#342897",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 246.486,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37217,
    "c": 0.17151,
    "h": 278.9
  },
  "luminance": 0.04482
}

Semantic roles & 50–950 ramp

primary
#342897
secondary
#B2BC5F
accent
#E146D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #342897

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

Preview Lab → · Contrast checker → · Palette generator →

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