#2340A6#2340A6

#2340A6 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 41.8% C 0.168 H 266.6°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2340A6
RGBrgb(35, 64, 166)
HSLhsl(227, 65%, 39%)
HSVhsv(227, 79%, 65%)
CMYKcmyk(78.9%, 61.4%, 0%, 34.9%)
CIE-LABlab(31.29, 27.44, -57.88)
CIE-LCHlch(31.29, 64.05, 295.36°)
OKLaboklab(41.81% -0.0099 -0.1673)
OKLCHoklch(41.81% 0.168 266.6)
XYZxyz(9.4071, 6.7762, 36.8812)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340A6 #A68923
analogous
#2381A6 #2340A6 #4823A6
triadic
#2340A6 #A62340 #40A623
tetradic
#2340A6 #A62381 #A68923 #23A648
square
#2340A6 #A62381 #A68923 #23A648
split-complementary
#2340A6 #A64823 #81A623
monochromatic
#0E1941 #182D73 #2340A6 #3256D4 #6580DF

Accessibility & contrast

On white

8.92
#2340A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#2340A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340A6
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340A6#FFFFFF#000000##FFFFFF
##2340A61.008.922.368.92
#FFFFFF8.921.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#005A6C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2340a6;
/* rgb */ color: rgb(35, 64, 166);
/* oklch */ color: oklch(41.8% 0.168 266.6);
Tailwind
colors: {
  custom: {
    50: '#7474c1',
    500: '#2340a6',
    950: '#000000',
  },
}
SCSS
$custom: #2340a6;
$custom-light: #7474c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2340a6",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 166
  },
  "hsl": {
    "h": 226.718,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.4181,
    "c": 0.16762,
    "h": 266.6
  },
  "luminance": 0.06777
}

Semantic roles & 50–950 ramp

primary
#2340A6
secondary
#C4AE61
accent
#C340E8
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2340A6

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

Preview Lab → · Contrast checker → · Palette generator →

#2340A6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva