#2340A2#2340A2

#2340A2 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.5% C 0.162 H 266.5°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#2340A2
RGBrgb(35, 64, 162)
HSLhsl(226, 64%, 39%)
HSVhsv(226, 78%, 64%)
CMYKcmyk(78.4%, 60.5%, 0%, 36.5%)
CIE-LABlab(30.95, 25.90, -56.02)
CIE-LCHlch(30.95, 61.72, 294.81°)
OKLaboklab(41.45% -0.0099 -0.1619)
OKLCHoklch(41.45% 0.162 266.5)
XYZxyz(9.0458, 6.6317, 34.9787)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340A2 #A28523
analogous
#237FA2 #2340A2 #4523A2
triadic
#2340A2 #A22340 #40A223
tetradic
#2340A2 #A2237F #A28523 #23A245
square
#2340A2 #A2237F #A28523 #23A245
split-complementary
#2340A2 #A24523 #7FA223
monochromatic
#0D183D #182C70 #2340A2 #3055D2 #627EDD

Accessibility & contrast

On white

9.03
#2340A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#2340A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340A2
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340A2#FFFFFF#000000##FFFFFF
##2340A21.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0043A0
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2340a2;
/* rgb */ color: rgb(35, 64, 162);
/* oklch */ color: oklch(41.5% 0.162 266.5);
Tailwind
colors: {
  custom: {
    50: '#7374be',
    500: '#2340a2',
    950: '#000000',
  },
}
SCSS
$custom: #2340a2;
$custom-light: #7374be;
$custom-dark: #000000;
JSON
{
  "hex": "#2340a2",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 162
  },
  "hsl": {
    "h": 226.299,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41453,
    "c": 0.16218,
    "h": 266.5
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#2340A2
secondary
#C2AC5E
accent
#C140E7
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2340A2

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

Preview Lab → · Contrast checker → · Palette generator →

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