#342FAF#342FAF

#342FAF is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.7% C 0.194 H 275.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#342FAF
RGBrgb(52, 47, 175)
HSLhsl(242, 58%, 44%)
HSVhsv(242, 73%, 69%)
CMYKcmyk(70.3%, 73.1%, 0%, 31.4%)
CIE-LABlab(29.05, 43.18, -66.92)
CIE-LCHlch(29.05, 79.64, 302.83°)
OKLaboklab(40.68% 0.0174 -0.1935)
OKLCHoklch(40.68% 0.194 275.2)
XYZxyz(10.1680, 5.8573, 41.1438)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FAF #AAAF2F
analogous
#2F6AAF #342FAF #742FAF
triadic
#342FAF #AF342F #2FAF34
tetradic
#342FAF #AF2F6A #AAAF2F #2FAF74
square
#342FAF #AF2F6A #AAAF2F #2FAF74
split-complementary
#342FAF #AF742F #6AAF2F
monochromatic
#17154F #26227F #342FAF #514CCF #807CDC

Accessibility & contrast

On white

9.67
#342FAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#342FAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FAF
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FAF#FFFFFF#000000##FFFFFF
##342FAF1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB3
Deuteranopia (green-blind)
#003FAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #342faf;
/* rgb */ color: rgb(52, 47, 175);
/* oklch */ color: oklch(40.7% 0.194 275.2);
Tailwind
colors: {
  custom: {
    50: '#7d69c8',
    500: '#342faf',
    950: '#000000',
  },
}
SCSS
$custom: #342faf;
$custom-light: #7d69c8;
$custom-dark: #000000;
JSON
{
  "hex": "#342faf",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 175
  },
  "hsl": {
    "h": 242.344,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.40678,
    "c": 0.19424,
    "h": 275.2
  },
  "luminance": 0.05858
}

Semantic roles & 50–950 ramp

primary
#342FAF
secondary
#C1C475
accent
#E147DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #342FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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