#2340A0#2340A0

#2340A0 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.3% C 0.159 H 266.4°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2340A0
RGBrgb(35, 64, 160)
HSLhsl(226, 64%, 38%)
HSVhsv(226, 78%, 63%)
CMYKcmyk(78.1%, 60%, 0%, 37.3%)
CIE-LABlab(30.79, 25.12, -55.09)
CIE-LCHlch(30.79, 60.55, 294.52°)
OKLaboklab(41.28% -0.01 -0.1591)
OKLCHoklch(41.28% 0.159 266.4)
XYZxyz(8.8695, 6.5612, 34.0499)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340A0 #A08323
analogous
#237EA0 #2340A0 #4423A0
triadic
#2340A0 #A02340 #40A023
tetradic
#2340A0 #A0237E #A08323 #23A044
square
#2340A0 #A0237E #A08323 #23A044
split-complementary
#2340A0 #A04423 #7EA023
monochromatic
#0D183C #182C6E #2340A0 #2F54D1 #617EDC

Accessibility & contrast

On white

9.08
#2340A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2340A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340A0
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340A0#FFFFFF#000000##FFFFFF
##2340A01.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#005869
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2340a0;
/* rgb */ color: rgb(35, 64, 160);
/* oklch */ color: oklch(41.3% 0.159 266.4);
Tailwind
colors: {
  custom: {
    50: '#7274bd',
    500: '#2340a0',
    950: '#000000',
  },
}
SCSS
$custom: #2340a0;
$custom-light: #7274bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2340a0",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 160
  },
  "hsl": {
    "h": 226.08,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41277,
    "c": 0.15945,
    "h": 266.4
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

primary
#2340A0
secondary
#C1AA5D
accent
#C041E7
background
#F7F7FB
surface
#EDEDF7
border
#C8C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2340A0

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

Preview Lab → · Contrast checker → · Palette generator →

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