#2834A5#2834A5

#2834A5 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.8% C 0.179 H 270.7°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#2834A5
RGBrgb(40, 52, 165)
HSLhsl(234, 61%, 40%)
HSVhsv(234, 76%, 65%)
CMYKcmyk(75.8%, 68.5%, 0%, 35.3%)
CIE-LABlab(28.44, 35.43, -61.94)
CIE-LCHlch(28.44, 71.36, 299.77°)
OKLaboklab(39.75% 0.0021 -0.1792)
OKLCHoklch(39.75% 0.179 270.7)
XYZxyz(8.8923, 5.6228, 36.2067)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2834A5 #A59928
analogous
#2872A5 #2834A5 #5A28A5
triadic
#2834A5 #A52834 #34A528
tetradic
#2834A5 #A52872 #A59928 #28A55A
square
#2834A5 #A52872 #A59928 #28A55A
split-complementary
#2834A5 #A55A28 #72A528
monochromatic
#101542 #1C2474 #2834A5 #3B49CF #6C77DB

Accessibility & contrast

On white

9.88
#2834A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2834A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2834A5
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2834A5#FFFFFF#000000##FFFFFF
##2834A51.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A8
Deuteranopia (green-blind)
#003DA3
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2834a5;
/* rgb */ color: rgb(40, 52, 165);
/* oklch */ color: oklch(39.8% 0.179 270.7);
Tailwind
colors: {
  custom: {
    50: '#766cc1',
    500: '#2834a5',
    950: '#000000',
  },
}
SCSS
$custom: #2834a5;
$custom-light: #766cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2834a5",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 165
  },
  "hsl": {
    "h": 234.24,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.3975,
    "c": 0.17922,
    "h": 270.7
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#2834A5
secondary
#C2B967
accent
#D544E4
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2834A5

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

Preview Lab → · Contrast checker → · Palette generator →

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