#2340B0#2340B0

#2340B0 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.181 H 266.8°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2340B0
RGBrgb(35, 64, 176)
HSLhsl(228, 67%, 41%)
HSVhsv(228, 80%, 69%)
CMYKcmyk(80.1%, 63.6%, 0%, 31%)
CIE-LABlab(32.16, 31.25, -62.43)
CIE-LCHlch(32.16, 69.82, 296.59°)
OKLaboklab(42.73% -0.0099 -0.1807)
OKLCHoklch(42.73% 0.181 266.8)
XYZxyz(10.3603, 7.1575, 41.9014)
Luminance0.0716 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2340B0 #B09323
analogous
#2387B0 #2340B0 #4D23B0
triadic
#2340B0 #B02340 #40B023
tetradic
#2340B0 #B02387 #B09323 #23B04D
square
#2340B0 #B02387 #B09323 #23B04D
split-complementary
#2340B0 #B04D23 #87B023
monochromatic
#0F1B4A #192D7D #2340B0 #3959D8 #6C84E2

Accessibility & contrast

On white

8.64
#2340B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2340B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2340B0
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2340B0#FFFFFF#000000##FFFFFF
##2340B01.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B4
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#005D72
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2340b0;
/* rgb */ color: rgb(35, 64, 176);
/* oklch */ color: oklch(42.7% 0.181 266.8);
Tailwind
colors: {
  custom: {
    50: '#7674c9',
    500: '#2340b0',
    950: '#000000',
  },
}
SCSS
$custom: #2340b0;
$custom-light: #7674c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2340b0",
  "rgb": {
    "r": 35,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 227.66,
    "s": 66.825,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42725,
    "c": 0.18095,
    "h": 266.8
  },
  "luminance": 0.07159
}

Semantic roles & 50–950 ramp

primary
#2340B0
secondary
#C8B467
accent
#C63EEA
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2340B0

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

Preview Lab → · Contrast checker → · Palette generator →

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