#2340AE#2340AE

#2340AE is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.5% C 0.178 H 266.8°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#2340AE
RGBrgb(35, 64, 174)
HSLhsl(227, 67%, 41%)
HSVhsv(227, 80%, 68%)
CMYKcmyk(79.9%, 63.2%, 0%, 31.8%)
CIE-LABlab(31.99, 30.49, -61.53)
CIE-LCHlch(31.99, 68.67, 296.36°)
OKLaboklab(42.54% -0.0099 -0.178)
OKLCHoklch(42.54% 0.178 266.8)
XYZxyz(10.1638, 7.0789, 40.8669)
Luminance0.0708 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340AE #AE9123
analogous
#2385AE #2340AE #4B23AE
triadic
#2340AE #AE2340 #40AE23
tetradic
#2340AE #AE2385 #AE9123 #23AE4B
square
#2340AE #AE2385 #AE9123 #23AE4B
split-complementary
#2340AE #AE4B23 #85AE23
monochromatic
#0F1B48 #192D7B #2340AE #3759D7 #6A83E1

Accessibility & contrast

On white

8.69
#2340AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2340AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340AE
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340AE#FFFFFF#000000##FFFFFF
##2340AE1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B2
Deuteranopia (green-blind)
#0045AC
Tritanopia (blue-blind)
#005D71
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2340ae;
/* rgb */ color: rgb(35, 64, 174);
/* oklch */ color: oklch(42.5% 0.178 266.8);
Tailwind
colors: {
  custom: {
    50: '#7674c7',
    500: '#2340ae',
    950: '#000000',
  },
}
SCSS
$custom: #2340ae;
$custom-light: #7674c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2340ae",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 174
  },
  "hsl": {
    "h": 227.482,
    "s": 66.507,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42539,
    "c": 0.17832,
    "h": 266.8
  },
  "luminance": 0.0708
}

Semantic roles & 50–950 ramp

primary
#2340AE
secondary
#C7B366
accent
#C63EE9
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2340AE

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

Preview Lab → · Contrast checker → · Palette generator →

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