#2835A4#2835A4

#2835A4 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.177 H 270.5°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#2835A4
RGBrgb(40, 53, 164)
HSLhsl(234, 61%, 40%)
HSVhsv(234, 76%, 64%)
CMYKcmyk(75.6%, 67.7%, 0%, 35.7%)
CIE-LABlab(28.58, 34.43, -61.10)
CIE-LCHlch(28.58, 70.14, 299.40°)
OKLaboklab(39.82% 0.0016 -0.1768)
OKLCHoklch(39.82% 0.177 270.5)
XYZxyz(8.8467, 5.6767, 35.7442)
Luminance0.0568 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2835A4 #A49728
analogous
#2873A4 #2835A4 #5928A4
triadic
#2835A4 #A42835 #35A428
tetradic
#2835A4 #A42873 #A49728 #28A459
square
#2835A4 #A42873 #A49728 #28A459
split-complementary
#2835A4 #A45928 #73A428
monochromatic
#101542 #1C2573 #2835A4 #3A4ACF #6B77DB

Accessibility & contrast

On white

9.83
#2835A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2835A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2835A4
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2835A4#FFFFFF#000000##FFFFFF
##2835A41.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2835a4;
/* rgb */ color: rgb(40, 53, 164);
/* oklch */ color: oklch(39.8% 0.177 270.5);
Tailwind
colors: {
  custom: {
    50: '#766cc0',
    500: '#2835a4',
    950: '#000000',
  },
}
SCSS
$custom: #2835a4;
$custom-light: #766cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2835a4",
  "rgb": {
    "r": 40,
    "g": 53,
    "b": 164
  },
  "hsl": {
    "h": 233.71,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.39824,
    "c": 0.17678,
    "h": 270.5
  },
  "luminance": 0.05678
}

Semantic roles & 50–950 ramp

primary
#2835A4
secondary
#C1B866
accent
#D344E4
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2835A4

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

Preview Lab → · Contrast checker → · Palette generator →

#2835A4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva