#2340B4#2340B4

#2340B4 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.186 H 266.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#2340B4
RGBrgb(35, 64, 180)
HSLhsl(228, 67%, 42%)
HSVhsv(228, 81%, 71%)
CMYKcmyk(80.6%, 64.4%, 0%, 29.4%)
CIE-LABlab(32.52, 32.75, -64.23)
CIE-LCHlch(32.52, 72.09, 297.02°)
OKLaboklab(43.1% -0.01 -0.1859)
OKLCHoklch(43.1% 0.186 266.9)
XYZxyz(10.7619, 7.3181, 44.0165)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340B4 #B49723
analogous
#2389B4 #2340B4 #4F23B4
triadic
#2340B4 #B42340 #40B423
tetradic
#2340B4 #B42389 #B49723 #23B44F
square
#2340B4 #B42389 #B49723 #23B44F
split-complementary
#2340B4 #B44F23 #89B423
monochromatic
#0F1C4E #192E81 #2340B4 #3B5BD9 #6E86E3

Accessibility & contrast

On white

8.52
#2340B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2340B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340B4
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340B4#FFFFFF#000000##FFFFFF
##2340B41.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B8
Deuteranopia (green-blind)
#0046B2
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2340b4;
/* rgb */ color: rgb(35, 64, 180);
/* oklch */ color: oklch(43.1% 0.186 266.9);
Tailwind
colors: {
  custom: {
    50: '#7774cb',
    500: '#2340b4',
    950: '#000000',
  },
}
SCSS
$custom: #2340b4;
$custom-light: #7774cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2340b4",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 180
  },
  "hsl": {
    "h": 228,
    "s": 67.442,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43098,
    "c": 0.18619,
    "h": 266.9
  },
  "luminance": 0.07319
}

Semantic roles & 50–950 ramp

primary
#2340B4
secondary
#C9B669
accent
#C83DEA
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2340B4

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

Preview Lab → · Contrast checker → · Palette generator →

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