#2342A4#2342A4

#2342A4 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.162 H 266.0°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#2342A4
RGBrgb(35, 66, 164)
HSLhsl(226, 65%, 39%)
HSVhsv(226, 79%, 64%)
CMYKcmyk(78.7%, 59.8%, 0%, 35.7%)
CIE-LABlab(31.65, 25.32, -56.08)
CIE-LCHlch(31.65, 61.54, 294.30°)
OKLaboklab(42.03% -0.0112 -0.162)
OKLCHoklch(42.03% 0.162 266)
XYZxyz(9.3398, 6.9330, 35.9607)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2342A4 #A48523
analogous
#2383A4 #2342A4 #4423A4
triadic
#2342A4 #A42342 #42A423
tetradic
#2342A4 #A42383 #A48523 #23A444
square
#2342A4 #A42383 #A48523 #23A444
split-complementary
#2342A4 #A44423 #83A423
monochromatic
#0D193F #182E72 #2342A4 #3158D3 #6481DE

Accessibility & contrast

On white

8.80
#2342A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2342A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2342A4
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2342A4#FFFFFF#000000##FFFFFF
##2342A41.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2342a4;
/* rgb */ color: rgb(35, 66, 164);
/* oklch */ color: oklch(42.0% 0.162 266.0);
Tailwind
colors: {
  custom: {
    50: '#7376c0',
    500: '#2342a4',
    950: '#000000',
  },
}
SCSS
$custom: #2342a4;
$custom-light: #7376c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2342a4",
  "rgb": {
    "r": 35,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 225.581,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42028,
    "c": 0.16243,
    "h": 266
  },
  "luminance": 0.06934
}

Semantic roles & 50–950 ramp

primary
#2342A4
secondary
#C3AB60
accent
#BF40E8
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2342A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2342A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva