#2840B0#2840B0

#2840B0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 42.9% C 0.180 H 268.2°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2840B0
RGBrgb(40, 64, 176)
HSLhsl(229, 63%, 42%)
HSVhsv(229, 77%, 69%)
CMYKcmyk(77.3%, 63.6%, 0%, 31%)
CIE-LABlab(32.37, 31.73, -62.08)
CIE-LCHlch(32.37, 69.72, 297.07°)
OKLaboklab(42.94% -0.0057 -0.1796)
OKLCHoklch(42.94% 0.18 268.2)
XYZxyz(10.5422, 7.2513, 41.9099)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2840B0 #B09828
analogous
#2884B0 #2840B0 #5428B0
triadic
#2840B0 #B02840 #40B028
tetradic
#2840B0 #B02884 #B09828 #28B054
square
#2840B0 #B02884 #B09828 #28B054
split-complementary
#2840B0 #B05428 #84B028
monochromatic
#111C4C #1D2E7E #2840B0 #415BD4 #7386DF

Accessibility & contrast

On white

8.57
#2840B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2840B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2840B0
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2840B0#FFFFFF#000000##FFFFFF
##2840B01.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2840b0;
/* rgb */ color: rgb(40, 64, 176);
/* oklch */ color: oklch(42.9% 0.180 268.2);
Tailwind
colors: {
  custom: {
    50: '#7874c9',
    500: '#2840b0',
    950: '#000000',
  },
}
SCSS
$custom: #2840b0;
$custom-light: #7874c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2840b0",
  "rgb": {
    "r": 40,
    "g": 64,
    "b": 176
  },
  "hsl": {
    "h": 229.412,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42937,
    "c": 0.17965,
    "h": 268.2
  },
  "luminance": 0.07252
}

Semantic roles & 50–950 ramp

primary
#2840B0
secondary
#C6B76D
accent
#C942E6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2840B0

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

Preview Lab → · Contrast checker → · Palette generator →

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