#2834AB#2834AB

#2834AB is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.3% C 0.187 H 270.5°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#2834AB
RGBrgb(40, 52, 171)
HSLhsl(235, 62%, 41%)
HSVhsv(235, 77%, 67%)
CMYKcmyk(76.6%, 69.6%, 0%, 32.9%)
CIE-LABlab(29.02, 37.59, -64.60)
CIE-LCHlch(29.02, 74.73, 300.19°)
OKLaboklab(40.35% 0.0015 -0.187)
OKLCHoklch(40.35% 0.187 270.5)
XYZxyz(9.4512, 5.8463, 39.1505)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2834AB #AB9F28
analogous
#2876AB #2834AB #5E28AB
triadic
#2834AB #AB2834 #34AB28
tetradic
#2834AB #AB2876 #AB9F28 #28AB5E
square
#2834AB #AB2876 #AB9F28 #28AB5E
split-complementary
#2834AB #AB5E28 #76AB28
monochromatic
#111648 #1C2579 #2834AB #3E4CD2 #707ADE

Accessibility & contrast

On white

9.68
#2834AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2834AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2834AB
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2834AB#FFFFFF#000000##FFFFFF
##2834AB1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#003EA9
Tritanopia (blue-blind)
#00556B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2834ab;
/* rgb */ color: rgb(40, 52, 171);
/* oklch */ color: oklch(40.3% 0.187 270.5);
Tailwind
colors: {
  custom: {
    50: '#786cc5',
    500: '#2834ab',
    950: '#000000',
  },
}
SCSS
$custom: #2834ab;
$custom-light: #786cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2834ab",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 171
  },
  "hsl": {
    "h": 234.504,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40348,
    "c": 0.18698,
    "h": 270.5
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#2834AB
secondary
#C4BC6A
accent
#D643E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2834AB

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

Preview Lab → · Contrast checker → · Palette generator →

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