#2834AD#2834AD

#2834AD is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.190 H 270.4°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#2834AD
RGBrgb(40, 52, 173)
HSLhsl(235, 62%, 42%)
HSVhsv(235, 77%, 68%)
CMYKcmyk(76.9%, 69.9%, 0%, 32.2%)
CIE-LABlab(29.22, 38.30, -65.47)
CIE-LCHlch(29.22, 75.85, 300.33°)
OKLaboklab(40.55% 0.0013 -0.1895)
OKLCHoklch(40.55% 0.19 270.4)
XYZxyz(9.6433, 5.9232, 40.1621)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2834AD #ADA128
analogous
#2877AD #2834AD #5E28AD
triadic
#2834AD #AD2834 #34AD28
tetradic
#2834AD #AD2877 #ADA128 #28AD5E
square
#2834AD #AD2877 #ADA128 #28AD5E
split-complementary
#2834AD #AD5E28 #77AD28
monochromatic
#11164A #1D257B #2834AD #3F4DD3 #717BDE

Accessibility & contrast

On white

9.61
#2834AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2834AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2834AD
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2834AD#FFFFFF#000000##FFFFFF
##2834AD1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB1
Deuteranopia (green-blind)
#003EAB
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2834ad;
/* rgb */ color: rgb(40, 52, 173);
/* oklch */ color: oklch(40.5% 0.190 270.4);
Tailwind
colors: {
  custom: {
    50: '#786cc7',
    500: '#2834ad',
    950: '#000000',
  },
}
SCSS
$custom: #2834ad;
$custom-light: #786cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2834ad",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 173
  },
  "hsl": {
    "h": 234.586,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40549,
    "c": 0.18952,
    "h": 270.4
  },
  "luminance": 0.05924
}

Semantic roles & 50–950 ramp

primary
#2834AD
secondary
#C5BD6C
accent
#D742E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2834AD

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

Preview Lab → · Contrast checker → · Palette generator →

#2834AD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva