#342FBA#342FBA

#342FBA is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.8% C 0.208 H 274.2°. Best body text is #FFFFFF at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#342FBA
RGBrgb(52, 47, 186)
HSLhsl(242, 60%, 46%)
HSVhsv(242, 75%, 73%)
CMYKcmyk(72%, 74.7%, 0%, 27.1%)
CIE-LABlab(30.17, 46.78, -71.61)
CIE-LCHlch(30.17, 85.53, 303.15°)
OKLaboklab(41.81% 0.0154 -0.2071)
OKLCHoklch(41.81% 0.208 274.2)
XYZxyz(11.2927, 6.3072, 47.0671)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FBA #B5BA2F
analogous
#2F6FBA #342FBA #792FBA
triadic
#342FBA #BA342F #2FBA34
tetradic
#342FBA #BA2F6F #B5BA2F #2FBA79
square
#342FBA #BA2F6F #B5BA2F #2FBA79
split-complementary
#342FBA #BA792F #6FBA2F
monochromatic
#191658 #262389 #342FBA #5753D3 #8784E0

Accessibility & contrast

On white

9.29
#342FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#342FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FBA
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FBA#FFFFFF#000000##FFFFFF
##342FBA1.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBE
Deuteranopia (green-blind)
#0040B8
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #342fba;
/* rgb */ color: rgb(52, 47, 186);
/* oklch */ color: oklch(41.8% 0.208 274.2);
Tailwind
colors: {
  custom: {
    50: '#806ad0',
    500: '#342fba',
    950: '#000000',
  },
}
SCSS
$custom: #342fba;
$custom-light: #806ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#342fba",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 186
  },
  "hsl": {
    "h": 242.158,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.41813,
    "c": 0.2077,
    "h": 274.2
  },
  "luminance": 0.06308
}

Semantic roles & 50–950 ramp

primary
#342FBA
secondary
#C6C97C
accent
#E345DD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #342FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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