#2834A2#2834A2

#2834A2 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.5% C 0.175 H 270.8°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#2834A2
RGBrgb(40, 52, 162)
HSLhsl(234, 60%, 40%)
HSVhsv(234, 75%, 64%)
CMYKcmyk(75.3%, 67.9%, 0%, 36.5%)
CIE-LABlab(28.15, 34.35, -60.60)
CIE-LCHlch(28.15, 69.65, 299.54°)
OKLaboklab(39.46% 0.0024 -0.1753)
OKLCHoklch(39.46% 0.175 270.8)
XYZxyz(8.6224, 5.5148, 34.7855)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2834A2 #A29628
analogous
#2871A2 #2834A2 #5928A2
triadic
#2834A2 #A22834 #34A228
tetradic
#2834A2 #A22871 #A29628 #28A259
square
#2834A2 #A22871 #A29628 #28A259
split-complementary
#2834A2 #A25928 #71A228
monochromatic
#101440 #1C2471 #2834A2 #3948CE #6A75DA

Accessibility & contrast

On white

9.98
#2834A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2834A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2834A2
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2834A2#FFFFFF#000000##FFFFFF
##2834A21.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A5
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2834a2;
/* rgb */ color: rgb(40, 52, 162);
/* oklch */ color: oklch(39.5% 0.175 270.8);
Tailwind
colors: {
  custom: {
    50: '#756cbf',
    500: '#2834a2',
    950: '#000000',
  },
}
SCSS
$custom: #2834a2;
$custom-light: #756cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2834a2",
  "rgb": {
    "r": 40,
    "g": 52,
    "b": 162
  },
  "hsl": {
    "h": 234.098,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39455,
    "c": 0.17531,
    "h": 270.8
  },
  "luminance": 0.05516
}

Semantic roles & 50–950 ramp

primary
#2834A2
secondary
#C1B865
accent
#D444E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2834A2

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

Preview Lab → · Contrast checker → · Palette generator →

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