#2340A8#2340A8

#2340A8 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.0% C 0.170 H 266.7°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#2340A8
RGBrgb(35, 64, 168)
HSLhsl(227, 66%, 40%)
HSVhsv(227, 79%, 66%)
CMYKcmyk(79.2%, 61.9%, 0%, 34.1%)
CIE-LABlab(31.46, 28.20, -58.80)
CIE-LCHlch(31.46, 65.21, 295.63°)
OKLaboklab(41.99% -0.0099 -0.17)
OKLCHoklch(41.99% 0.17 266.7)
XYZxyz(9.5919, 6.8502, 37.8549)
Luminance0.0685 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340A8 #A88B23
analogous
#2383A8 #2340A8 #4823A8
triadic
#2340A8 #A82340 #40A823
tetradic
#2340A8 #A82383 #A88B23 #23A848
square
#2340A8 #A82383 #A88B23 #23A848
split-complementary
#2340A8 #A84823 #83A823
monochromatic
#0E1943 #182D75 #2340A8 #3457D5 #6681DF

Accessibility & contrast

On white

8.86
#2340A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2340A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340A8
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340A8#FFFFFF#000000##FFFFFF
##2340A81.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0044A6
Tritanopia (blue-blind)
#005B6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2340a8;
/* rgb */ color: rgb(35, 64, 168);
/* oklch */ color: oklch(42.0% 0.170 266.7);
Tailwind
colors: {
  custom: {
    50: '#7474c3',
    500: '#2340a8',
    950: '#000000',
  },
}
SCSS
$custom: #2340a8;
$custom-light: #7474c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2340a8",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 168
  },
  "hsl": {
    "h": 226.917,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41991,
    "c": 0.17032,
    "h": 266.7
  },
  "luminance": 0.06851
}

Semantic roles & 50–950 ramp

primary
#2340A8
secondary
#C5AF62
accent
#C43FE8
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2340A8

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

Preview Lab → · Contrast checker → · Palette generator →

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