#2340A4#2340A4

#2340A4 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.6% C 0.165 H 266.6°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#2340A4
RGBrgb(35, 64, 164)
HSLhsl(227, 65%, 39%)
HSVhsv(227, 79%, 64%)
CMYKcmyk(78.7%, 61%, 0%, 35.7%)
CIE-LABlab(31.12, 26.67, -56.95)
CIE-LCHlch(31.12, 62.89, 295.09°)
OKLaboklab(41.63% -0.0099 -0.1646)
OKLCHoklch(41.63% 0.165 266.6)
XYZxyz(9.2250, 6.7034, 35.9225)
Luminance0.0670 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340A4 #A48723
analogous
#2381A4 #2340A4 #4723A4
triadic
#2340A4 #A42340 #40A423
tetradic
#2340A4 #A42381 #A48723 #23A447
square
#2340A4 #A42381 #A48723 #23A447
split-complementary
#2340A4 #A44723 #81A423
monochromatic
#0D193F #182C72 #2340A4 #3156D3 #647FDE

Accessibility & contrast

On white

8.97
#2340A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#2340A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340A4
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340A4#FFFFFF#000000##FFFFFF
##2340A41.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA7
Deuteranopia (green-blind)
#0043A2
Tritanopia (blue-blind)
#005A6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2340a4;
/* rgb */ color: rgb(35, 64, 164);
/* oklch */ color: oklch(41.6% 0.165 266.6);
Tailwind
colors: {
  custom: {
    50: '#7374c0',
    500: '#2340a4',
    950: '#000000',
  },
}
SCSS
$custom: #2340a4;
$custom-light: #7374c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2340a4",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 226.512,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41631,
    "c": 0.16491,
    "h": 266.6
  },
  "luminance": 0.06704
}

Semantic roles & 50–950 ramp

primary
#2340A4
secondary
#C3AD60
accent
#C240E8
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2340A4

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

Preview Lab → · Contrast checker → · Palette generator →

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