#2834AE#2834AE

#2834AE is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.191 H 270.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#2834AE
RGBrgb(40, 52, 174)
HSLhsl(235, 63%, 42%)
HSVhsv(235, 77%, 68%)
CMYKcmyk(77%, 70.1%, 0%, 31.8%)
CIE-LABlab(29.32, 38.65, -65.91)
CIE-LCHlch(29.32, 76.41, 300.39°)
OKLaboklab(40.65% 0.0012 -0.1908)
OKLCHoklch(40.65% 0.191 270.3)
XYZxyz(9.7404, 5.9620, 40.6736)
Luminance0.0596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2834AE #AEA228
analogous
#2877AE #2834AE #5F28AE
triadic
#2834AE #AE2834 #34AE28
tetradic
#2834AE #AE2877 #AEA228 #28AE5F
square
#2834AE #AE2877 #AEA228 #28AE5F
split-complementary
#2834AE #AE5F28 #77AE28
monochromatic
#11164A #1D257C #2834AE #404DD3 #727CDF

Accessibility & contrast

On white

9.58
#2834AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2834AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2834AE
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2834AE#FFFFFF#000000##FFFFFF
##2834AE1.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB2
Deuteranopia (green-blind)
#003FAC
Tritanopia (blue-blind)
#00566D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2834ae;
/* rgb */ color: rgb(40, 52, 174);
/* oklch */ color: oklch(40.6% 0.191 270.3);
Tailwind
colors: {
  custom: {
    50: '#786cc7',
    500: '#2834ae',
    950: '#000000',
  },
}
SCSS
$custom: #2834ae;
$custom-light: #786cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2834ae",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 174
  },
  "hsl": {
    "h": 234.627,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4065,
    "c": 0.1908,
    "h": 270.3
  },
  "luminance": 0.05963
}

Semantic roles & 50–950 ramp

primary
#2834AE
secondary
#C6BE6C
accent
#D742E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2834AE

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

Preview Lab → · Contrast checker → · Palette generator →

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