#2340A3#2340A3

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

Color values

HEX#2340A3
RGBrgb(35, 64, 163)
HSLhsl(226, 65%, 39%)
HSVhsv(226, 79%, 64%)
CMYKcmyk(78.5%, 60.7%, 0%, 36.1%)
CIE-LABlab(31.04, 26.28, -56.49)
CIE-LCHlch(31.04, 62.30, 294.95°)
OKLaboklab(41.54% -0.0099 -0.1632)
OKLCHoklch(41.54% 0.164 266.5)
XYZxyz(9.1351, 6.6674, 35.4487)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340A3 #A38623
analogous
#2380A3 #2340A3 #4623A3
triadic
#2340A3 #A32340 #40A323
tetradic
#2340A3 #A32380 #A38623 #23A346
square
#2340A3 #A32380 #A38623 #23A346
split-complementary
#2340A3 #A34623 #80A323
monochromatic
#0D183E #182C71 #2340A3 #3155D3 #637FDD

Accessibility & contrast

On white

9.00
#2340A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2340A3
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340A3#FFFFFF#000000##FFFFFF
##2340A31.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#0043A1
Tritanopia (blue-blind)
#00596B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #2340a3;
/* rgb */ color: rgb(35, 64, 163);
/* oklch */ color: oklch(41.5% 0.164 266.5);
Tailwind
colors: {
  custom: {
    50: '#7374bf',
    500: '#2340a3',
    950: '#000000',
  },
}
SCSS
$custom: #2340a3;
$custom-light: #7374bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2340a3",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 163
  },
  "hsl": {
    "h": 226.406,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41542,
    "c": 0.16355,
    "h": 266.5
  },
  "luminance": 0.06668
}

Semantic roles & 50–950 ramp

primary
#2340A3
secondary
#C3AC5F
accent
#C240E8
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#090812
muted
#7B7B81

Preview Lab

Preview with #2340A3

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

Preview Lab → · Contrast checker → · Palette generator →

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