#2340B2#2340B2

#2340B2 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.184 H 266.9°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#2340B2
RGBrgb(35, 64, 178)
HSLhsl(228, 67%, 42%)
HSVhsv(228, 80%, 70%)
CMYKcmyk(80.3%, 64%, 0%, 30.2%)
CIE-LABlab(32.34, 32.00, -63.33)
CIE-LCHlch(32.34, 70.96, 296.81°)
OKLaboklab(42.91% -0.01 -0.1833)
OKLCHoklch(42.91% 0.184 266.9)
XYZxyz(10.5596, 7.2372, 42.9512)
Luminance0.0724 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340B2 #B29523
analogous
#2388B2 #2340B2 #4E23B2
triadic
#2340B2 #B22340 #40B223
tetradic
#2340B2 #B22388 #B29523 #23B24E
square
#2340B2 #B22388 #B29523 #23B24E
split-complementary
#2340B2 #B24E23 #88B223
monochromatic
#0F1B4C #192E7F #2340B2 #3A5AD8 #6D85E2

Accessibility & contrast

On white

8.58
#2340B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2340B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340B2
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340B2#FFFFFF#000000##FFFFFF
##2340B21.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B6
Deuteranopia (green-blind)
#0045B0
Tritanopia (blue-blind)
#005E73
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2340b2;
/* rgb */ color: rgb(35, 64, 178);
/* oklch */ color: oklch(42.9% 0.184 266.9);
Tailwind
colors: {
  custom: {
    50: '#7774ca',
    500: '#2340b2',
    950: '#000000',
  },
}
SCSS
$custom: #2340b2;
$custom-light: #7774ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2340b2",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 227.832,
    "s": 67.136,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42911,
    "c": 0.18358,
    "h": 266.9
  },
  "luminance": 0.07238
}

Semantic roles & 50–950 ramp

primary
#2340B2
secondary
#C9B568
accent
#C73EEA
background
#F7F7FC
surface
#EEEDF9
border
#C9C8D2
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2340B2

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

Preview Lab → · Contrast checker → · Palette generator →

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