#2340A7#2340A7

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

Color values

HEX#2340A7
RGBrgb(35, 64, 167)
HSLhsl(227, 65%, 40%)
HSVhsv(227, 79%, 65%)
CMYKcmyk(79%, 61.7%, 0%, 34.5%)
CIE-LABlab(31.38, 27.82, -58.34)
CIE-LCHlch(31.38, 64.63, 295.50°)
OKLaboklab(41.9% -0.0099 -0.1687)
OKLCHoklch(41.9% 0.169 266.6)
XYZxyz(9.4991, 6.8130, 37.3661)
Luminance0.0681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340A7 #A78A23
analogous
#2382A7 #2340A7 #4823A7
triadic
#2340A7 #A72340 #40A723
tetradic
#2340A7 #A72382 #A78A23 #23A748
square
#2340A7 #A72382 #A78A23 #23A748
split-complementary
#2340A7 #A74823 #82A723
monochromatic
#0E1942 #182D74 #2340A7 #3356D4 #6680DF

Accessibility & contrast

On white

8.89
#2340A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2340A7
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340A7#FFFFFF#000000##FFFFFF
##2340A71.008.892.368.89
#FFFFFF8.891.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2340a7;
/* rgb */ color: rgb(35, 64, 167);
/* oklch */ color: oklch(41.9% 0.169 266.6);
Tailwind
colors: {
  custom: {
    50: '#7474c2',
    500: '#2340a7',
    950: '#000000',
  },
}
SCSS
$custom: #2340a7;
$custom-light: #7474c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2340a7",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 226.818,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.41901,
    "c": 0.16897,
    "h": 266.6
  },
  "luminance": 0.06814
}

Semantic roles & 50–950 ramp

primary
#2340A7
secondary
#C4AF61
accent
#C33FE8
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2340A7

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

Preview Lab → · Contrast checker → · Palette generator →

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