#2834AC#2834AC

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

Color values

HEX#2834AC
RGBrgb(40, 52, 172)
HSLhsl(235, 62%, 42%)
HSVhsv(235, 77%, 67%)
CMYKcmyk(76.7%, 69.8%, 0%, 32.5%)
CIE-LABlab(29.12, 37.94, -65.03)
CIE-LCHlch(29.12, 75.29, 300.26°)
OKLaboklab(40.45% 0.0014 -0.1882)
OKLCHoklch(40.45% 0.188 270.4)
XYZxyz(9.5469, 5.8846, 39.6544)
Luminance0.0589 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2834AC #ACA028
analogous
#2876AC #2834AC #5E28AC
triadic
#2834AC #AC2834 #34AC28
tetradic
#2834AC #AC2876 #ACA028 #28AC5E
square
#2834AC #AC2876 #ACA028 #28AC5E
split-complementary
#2834AC #AC5E28 #76AC28
monochromatic
#111649 #1C257A #2834AC #3F4CD2 #717ADE

Accessibility & contrast

On white

9.65
#2834AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2834AC
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2834AC#FFFFFF#000000##FFFFFF
##2834AC1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#003EAA
Tritanopia (blue-blind)
#00556C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2834ac;
/* rgb */ color: rgb(40, 52, 172);
/* oklch */ color: oklch(40.4% 0.188 270.4);
Tailwind
colors: {
  custom: {
    50: '#786cc6',
    500: '#2834ac',
    950: '#000000',
  },
}
SCSS
$custom: #2834ac;
$custom-light: #786cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2834ac",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 172
  },
  "hsl": {
    "h": 234.545,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40448,
    "c": 0.18825,
    "h": 270.4
  },
  "luminance": 0.05886
}

Semantic roles & 50–950 ramp

primary
#2834AC
secondary
#C5BD6B
accent
#D742E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2834AC

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

Preview Lab → · Contrast checker → · Palette generator →

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