#2342B2#2342B2

#2342B2 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.181 H 266.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#2342B2
RGBrgb(35, 66, 178)
HSLhsl(227, 67%, 42%)
HSVhsv(227, 80%, 70%)
CMYKcmyk(80.3%, 62.9%, 0%, 30.2%)
CIE-LABlab(32.85, 30.69, -62.50)
CIE-LCHlch(32.85, 69.63, 296.15°)
OKLaboklab(43.29% -0.0111 -0.1809)
OKLCHoklch(43.29% 0.181 266.5)
XYZxyz(10.6744, 7.4669, 42.9895)
Luminance0.0747 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2342B2 #B29323
analogous
#238AB2 #2342B2 #4C23B2
triadic
#2342B2 #B22342 #42B223
tetradic
#2342B2 #B2238A #B29323 #23B24C
square
#2342B2 #B2238A #B29323 #23B24C
split-complementary
#2342B2 #B24C23 #8AB223
monochromatic
#0F1C4C #192F7F #2342B2 #3A5CD8 #6D87E2

Accessibility & contrast

On white

8.42
#2342B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2342B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2342B2
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2342B2#FFFFFF#000000##FFFFFF
##2342B21.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2342b2;
/* rgb */ color: rgb(35, 66, 178);
/* oklch */ color: oklch(43.3% 0.181 266.5);
Tailwind
colors: {
  custom: {
    50: '#7776ca',
    500: '#2342b2',
    950: '#000000',
  },
}
SCSS
$custom: #2342b2;
$custom-light: #7776ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2342b2",
  "rgb": {
    "r": 35,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 226.993,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43285,
    "c": 0.1812,
    "h": 266.5
  },
  "luminance": 0.07468
}

Semantic roles & 50–950 ramp

primary
#2342B2
secondary
#C9B468
accent
#C53EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2342B2

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

Preview Lab → · Contrast checker → · Palette generator →

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