#342FAB#342FAB

#342FAB is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.3% C 0.189 H 275.5°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#342FAB
RGBrgb(52, 47, 171)
HSLhsl(242, 57%, 43%)
HSVhsv(242, 73%, 67%)
CMYKcmyk(69.6%, 72.5%, 0%, 32.9%)
CIE-LABlab(28.65, 41.85, -65.18)
CIE-LCHlch(28.65, 77.46, 302.70°)
OKLaboklab(40.27% 0.0182 -0.1884)
OKLCHoklch(40.27% 0.189 275.5)
XYZxyz(9.7810, 5.7025, 39.1054)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FAB #A6AB2F
analogous
#2F68AB #342FAB #722FAB
triadic
#342FAB #AB342F #2FAB34
tetradic
#342FAB #AB2F68 #A6AB2F #2FAB72
square
#342FAB #AB2F68 #A6AB2F #2FAB72
split-complementary
#342FAB #AB722F #68AB2F
monochromatic
#17154B #25227B #342FAB #4F4ACD #7E7ADA

Accessibility & contrast

On white

9.81
#342FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#342FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FAB
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FAB#FFFFFF#000000##FFFFFF
##342FAB1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049AF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#00526A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342fab;
/* rgb */ color: rgb(52, 47, 171);
/* oklch */ color: oklch(40.3% 0.189 275.5);
Tailwind
colors: {
  custom: {
    50: '#7d69c5',
    500: '#342fab',
    950: '#000000',
  },
}
SCSS
$custom: #342fab;
$custom-light: #7d69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#342fab",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 171
  },
  "hsl": {
    "h": 242.419,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.40273,
    "c": 0.18926,
    "h": 275.5
  },
  "luminance": 0.05703
}

Semantic roles & 50–950 ramp

primary
#342FAB
secondary
#C0C373
accent
#E048DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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