#342E8F#342E8F

#342E8F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.154 H 278.6°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#342E8F
RGBrgb(52, 46, 143)
HSLhsl(244, 51%, 37%)
HSVhsv(244, 68%, 56%)
CMYKcmyk(63.6%, 67.8%, 0%, 43.9%)
CIE-LABlab(25.76, 33.00, -52.86)
CIE-LCHlch(25.76, 62.31, 301.98°)
OKLaboklab(37.39% 0.0232 -0.1523)
OKLCHoklch(37.39% 0.154 278.6)
XYZxyz(7.3495, 4.6667, 26.4947)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E8F #898F2E
analogous
#2E598F #342E8F #642E8F
triadic
#342E8F #8F342E #2E8F34
tetradic
#342E8F #8F2E59 #898F2E #2E8F64
square
#342E8F #8F2E59 #898F2E #2E8F64
split-complementary
#342E8F #8F642E #598F2E
monochromatic
#121032 #231F61 #342E8F #453DBD #6F69CF

Accessibility & contrast

On white

10.86
#342E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#342E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E8F
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E8F#FFFFFF#000000##FFFFFF
##342E8F1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004192
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342e8f;
/* rgb */ color: rgb(52, 46, 143);
/* oklch */ color: oklch(37.4% 0.154 278.6);
Tailwind
colors: {
  custom: {
    50: '#7767b1',
    500: '#342e8f',
    950: '#000000',
  },
}
SCSS
$custom: #342e8f;
$custom-light: #7767b1;
$custom-dark: #000000;
JSON
{
  "hex": "#342e8f",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 243.711,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37387,
    "c": 0.15408,
    "h": 278.6
  },
  "luminance": 0.04667
}

Semantic roles & 50–950 ramp

primary
#342E8F
secondary
#B0B663
accent
#DB4DD2
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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