#2834B2#2834B2

#2834B2 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 41.1% C 0.196 H 270.2°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#2834B2
RGBrgb(40, 52, 178)
HSLhsl(235, 63%, 43%)
HSVhsv(235, 78%, 70%)
CMYKcmyk(77.5%, 70.8%, 0%, 30.2%)
CIE-LABlab(29.71, 40.07, -67.64)
CIE-LCHlch(29.71, 78.62, 300.64°)
OKLaboklab(41.06% 0.0007 -0.1958)
OKLCHoklch(41.06% 0.196 270.2)
XYZxyz(10.1362, 6.1203, 42.7580)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2834B2 #B2A628
analogous
#2879B2 #2834B2 #6128B2
triadic
#2834B2 #B22834 #34B228
tetradic
#2834B2 #B22879 #B2A628 #28B261
square
#2834B2 #B22879 #B2A628 #28B261
split-complementary
#2834B2 #B26128 #79B228
monochromatic
#12174E #1D2580 #2834B2 #434FD5 #757EE0

Accessibility & contrast

On white

9.44
#2834B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2834B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2834B2
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2834B2#FFFFFF#000000##FFFFFF
##2834B21.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#003FB0
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2834b2;
/* rgb */ color: rgb(40, 52, 178);
/* oklch */ color: oklch(41.1% 0.196 270.2);
Tailwind
colors: {
  custom: {
    50: '#796cca',
    500: '#2834b2',
    950: '#000000',
  },
}
SCSS
$custom: #2834b2;
$custom-light: #796cca;
$custom-dark: #000000;
JSON
{
  "hex": "#2834b2",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 234.783,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41056,
    "c": 0.19585,
    "h": 270.2
  },
  "luminance": 0.06121
}

Semantic roles & 50–950 ramp

primary
#2834B2
secondary
#C7C06F
accent
#D841E6
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2834B2

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

Preview Lab → · Contrast checker → · Palette generator →

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