#2835A0#2835A0

#2835A0 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.4% C 0.172 H 270.6°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#2835A0
RGBrgb(40, 53, 160)
HSLhsl(234, 60%, 39%)
HSVhsv(234, 75%, 63%)
CMYKcmyk(75%, 66.9%, 0%, 37.3%)
CIE-LABlab(28.21, 32.97, -59.30)
CIE-LCHlch(28.21, 67.85, 299.08°)
OKLaboklab(39.44% 0.0019 -0.1715)
OKLCHoklch(39.44% 0.172 270.6)
XYZxyz(8.4912, 5.5345, 33.8717)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2835A0 #A09328
analogous
#2871A0 #2835A0 #5728A0
triadic
#2835A0 #A02835 #35A028
tetradic
#2835A0 #A02871 #A09328 #28A057
square
#2835A0 #A02871 #A09328 #28A057
split-complementary
#2835A0 #A05728 #71A028
monochromatic
#10153E #1C256F #2835A0 #3848CD #6975D9

Accessibility & contrast

On white

9.97
#2835A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#2835A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2835A0
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2835A0#FFFFFF#000000##FFFFFF
##2835A01.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A3
Deuteranopia (green-blind)
#003D9E
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2835a0;
/* rgb */ color: rgb(40, 53, 160);
/* oklch */ color: oklch(39.4% 0.172 270.6);
Tailwind
colors: {
  custom: {
    50: '#756cbd',
    500: '#2835a0',
    950: '#000000',
  },
}
SCSS
$custom: #2835a0;
$custom-light: #756cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2835a0",
  "rgb": {
    "r": 40,
    "g": 53,
    "b": 160
  },
  "hsl": {
    "h": 233.5,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.39436,
    "c": 0.1715,
    "h": 270.6
  },
  "luminance": 0.05535
}

Semantic roles & 50–950 ramp

primary
#2835A0
secondary
#C0B664
accent
#D245E3
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2835A0

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

Preview Lab → · Contrast checker → · Palette generator →

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