#2342A7#2342A7

#2342A7 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.167 H 266.2°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2342A7
RGBrgb(35, 66, 167)
HSLhsl(226, 65%, 40%)
HSVhsv(226, 79%, 65%)
CMYKcmyk(79%, 60.5%, 0%, 34.5%)
CIE-LABlab(31.90, 26.48, -57.48)
CIE-LCHlch(31.90, 63.29, 294.74°)
OKLaboklab(42.29% -0.0112 -0.1661)
OKLCHoklch(42.29% 0.167 266.2)
XYZxyz(9.6140, 7.0427, 37.4044)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2342A7 #A78823
analogous
#2384A7 #2342A7 #4623A7
triadic
#2342A7 #A72342 #42A723
tetradic
#2342A7 #A72384 #A78823 #23A746
square
#2342A7 #A72384 #A78823 #23A746
split-complementary
#2342A7 #A74623 #84A723
monochromatic
#0E1A42 #182E74 #2342A7 #3359D4 #6682DF

Accessibility & contrast

On white

8.72
#2342A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2342A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2342A7
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2342A7#FFFFFF#000000##FFFFFF
##2342A71.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0045A5
Tritanopia (blue-blind)
#005C6E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2342a7;
/* rgb */ color: rgb(35, 66, 167);
/* oklch */ color: oklch(42.3% 0.167 266.2);
Tailwind
colors: {
  custom: {
    50: '#7476c2',
    500: '#2342a7',
    950: '#000000',
  },
}
SCSS
$custom: #2342a7;
$custom-light: #7476c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2342a7",
  "rgb": {
    "r": 35,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 225.909,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.42292,
    "c": 0.1665,
    "h": 266.2
  },
  "luminance": 0.07044
}

Semantic roles & 50–950 ramp

primary
#2342A7
secondary
#C4AD61
accent
#C13FE8
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2342A7

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

Preview Lab → · Contrast checker → · Palette generator →

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