#342489#342489

#342489 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.2% C 0.158 H 281.8°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#342489
RGBrgb(52, 36, 137)
HSLhsl(250, 58%, 34%)
HSVhsv(250, 74%, 54%)
CMYKcmyk(62%, 73.7%, 0%, 46.3%)
CIE-LABlab(22.99, 37.05, -53.67)
CIE-LCHlch(22.99, 65.21, 304.61°)
OKLaboklab(35.22% 0.0324 -0.1547)
OKLCHoklch(35.22% 0.158 281.8)
XYZxyz(6.5610, 3.7975, 24.0493)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342489 #798924
analogous
#244789 #342489 #672489
triadic
#342489 #893424 #248934
tetradic
#342489 #892447 #798924 #248967
square
#342489 #892447 #798924 #248967
split-complementary
#342489 #896724 #478924
monochromatic
#0F0B28 #221759 #342489 #4631B9 #6955D2

Accessibility & contrast

On white

11.93
#342489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#342489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342489
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342489#FFFFFF#000000##FFFFFF
##3424891.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8C
Deuteranopia (green-blind)
#003387
Tritanopia (blue-blind)
#004054
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #342489;
/* rgb */ color: rgb(52, 36, 137);
/* oklch */ color: oklch(35.2% 0.158 281.8);
Tailwind
colors: {
  custom: {
    50: '#7661ac',
    500: '#342489',
    950: '#000000',
  },
}
SCSS
$custom: #342489;
$custom-light: #7661ac;
$custom-dark: #000000;
JSON
{
  "hex": "#342489",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 137
  },
  "hsl": {
    "h": 249.505,
    "s": 58.382,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35224,
    "c": 0.15806,
    "h": 281.8
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#342489
secondary
#A7B752
accent
#E246C9
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #342489

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

Preview Lab → · Contrast checker → · Palette generator →

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