#2834B1#2834B1

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

Color values

HEX#2834B1
RGBrgb(40, 52, 177)
HSLhsl(235, 63%, 43%)
HSVhsv(235, 77%, 69%)
CMYKcmyk(77.4%, 70.6%, 0%, 30.6%)
CIE-LABlab(29.61, 39.71, -67.21)
CIE-LCHlch(29.61, 78.07, 300.58°)
OKLaboklab(40.95% 0.0008 -0.1946)
OKLCHoklch(40.95% 0.195 270.2)
XYZxyz(10.0362, 6.0803, 42.2311)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2834B1 #B1A528
analogous
#2878B1 #2834B1 #6128B1
triadic
#2834B1 #B12834 #34B128
tetradic
#2834B1 #B12878 #B1A528 #28B161
square
#2834B1 #B12878 #B1A528 #28B161
split-complementary
#2834B1 #B16128 #78B128
monochromatic
#11174D #1D257F #2834B1 #424FD4 #747DE0

Accessibility & contrast

On white

9.48
#2834B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2834B1
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2834B1#FFFFFF#000000##FFFFFF
##2834B11.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2834b1;
/* rgb */ color: rgb(40, 52, 177);
/* oklch */ color: oklch(41.0% 0.195 270.2);
Tailwind
colors: {
  custom: {
    50: '#796cc9',
    500: '#2834b1',
    950: '#000000',
  },
}
SCSS
$custom: #2834b1;
$custom-light: #796cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2834b1",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 177
  },
  "hsl": {
    "h": 234.745,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40954,
    "c": 0.19459,
    "h": 270.2
  },
  "luminance": 0.06081
}

Semantic roles & 50–950 ramp

primary
#2834B1
secondary
#C7BF6E
accent
#D842E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2834B1

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

Preview Lab → · Contrast checker → · Palette generator →

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