#342FBD#342FBD

#342FBD is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.1% C 0.211 H 274.0°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#342FBD
RGBrgb(52, 47, 189)
HSLhsl(242, 60%, 46%)
HSVhsv(242, 75%, 74%)
CMYKcmyk(72.5%, 75.1%, 0%, 25.9%)
CIE-LABlab(30.49, 47.74, -72.87)
CIE-LCHlch(30.49, 87.12, 303.23°)
OKLaboklab(42.13% 0.0148 -0.2108)
OKLCHoklch(42.13% 0.211 274)
XYZxyz(11.6149, 6.4361, 48.7644)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FBD #B8BD2F
analogous
#2F71BD #342FBD #7B2FBD
triadic
#342FBD #BD342F #2FBD34
tetradic
#342FBD #BD2F71 #B8BD2F #2FBD7B
square
#342FBD #BD2F71 #B8BD2F #2FBD7B
split-complementary
#342FBD #BD7B2F #71BD2F
monochromatic
#19175B #27238C #342FBD #5955D5 #8986E1

Accessibility & contrast

On white

9.18
#342FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#342FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FBD
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FBD#FFFFFF#000000##FFFFFF
##342FBD1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0041BA
Tritanopia (blue-blind)
#005974
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #342fbd;
/* rgb */ color: rgb(52, 47, 189);
/* oklch */ color: oklch(42.1% 0.211 274.0);
Tailwind
colors: {
  custom: {
    50: '#816ad2',
    500: '#342fbd',
    950: '#000000',
  },
}
SCSS
$custom: #342fbd;
$custom-light: #816ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#342fbd",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 242.113,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.42127,
    "c": 0.21131,
    "h": 274
  },
  "luminance": 0.06437
}

Semantic roles & 50–950 ramp

primary
#342FBD
secondary
#C8CA7E
accent
#E344DE
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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