#2842B2#2842B2

#2842B2 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.5% C 0.180 H 267.8°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2842B2
RGBrgb(40, 66, 178)
HSLhsl(229, 63%, 43%)
HSVhsv(229, 78%, 70%)
CMYKcmyk(77.5%, 62.9%, 0%, 30.2%)
CIE-LABlab(33.05, 31.17, -62.16)
CIE-LCHlch(33.05, 69.54, 296.63°)
OKLaboklab(43.49% -0.0069 -0.1798)
OKLCHoklch(43.49% 0.18 267.8)
XYZxyz(10.8564, 7.5607, 42.9980)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2842B2 #B29828
analogous
#2887B2 #2842B2 #5328B2
triadic
#2842B2 #B22842 #42B228
tetradic
#2842B2 #B22887 #B29828 #28B253
square
#2842B2 #B22887 #B29828 #28B253
split-complementary
#2842B2 #B25328 #87B228
monochromatic
#121D4E #1D2F80 #2842B2 #435ED5 #7589E0

Accessibility & contrast

On white

8.36
#2842B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2842B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2842B2
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2842B2#FFFFFF#000000##FFFFFF
##2842B21.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#005F74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2842b2;
/* rgb */ color: rgb(40, 66, 178);
/* oklch */ color: oklch(43.5% 0.180 267.8);
Tailwind
colors: {
  custom: {
    50: '#7876ca',
    500: '#2842b2',
    950: '#000000',
  },
}
SCSS
$custom: #2842b2;
$custom-light: #7876ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2842b2",
  "rgb": {
    "r": 40,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 228.696,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43492,
    "c": 0.1799,
    "h": 267.8
  },
  "luminance": 0.07562
}

Semantic roles & 50–950 ramp

primary
#2842B2
secondary
#C7B76F
accent
#C741E6
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2842B2

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

Preview Lab → · Contrast checker → · Palette generator →

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