#2835A5#2835A5

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

Color values

HEX#2835A5
RGBrgb(40, 53, 165)
HSLhsl(234, 61%, 40%)
HSVhsv(234, 76%, 65%)
CMYKcmyk(75.8%, 67.9%, 0%, 35.3%)
CIE-LABlab(28.68, 34.80, -61.55)
CIE-LCHlch(28.68, 70.71, 299.48°)
OKLaboklab(39.92% 0.0015 -0.1781)
OKLCHoklch(39.92% 0.178 270.5)
XYZxyz(8.9374, 5.7130, 36.2217)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2835A5 #A59828
analogous
#2873A5 #2835A5 #5928A5
triadic
#2835A5 #A52835 #35A528
tetradic
#2835A5 #A52873 #A59828 #28A559
square
#2835A5 #A52873 #A59828 #28A559
split-complementary
#2835A5 #A55928 #73A528
monochromatic
#101542 #1C2574 #2835A5 #3B4ACF #6C78DB

Accessibility & contrast

On white

9.80
#2835A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2835A5
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2835A5#FFFFFF#000000##FFFFFF
##2835A51.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2835a5;
/* rgb */ color: rgb(40, 53, 165);
/* oklch */ color: oklch(39.9% 0.178 270.5);
Tailwind
colors: {
  custom: {
    50: '#766cc1',
    500: '#2835a5',
    950: '#000000',
  },
}
SCSS
$custom: #2835a5;
$custom-light: #766cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2835a5",
  "rgb": {
    "r": 40,
    "g": 53,
    "b": 165
  },
  "hsl": {
    "h": 233.76,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39922,
    "c": 0.17809,
    "h": 270.5
  },
  "luminance": 0.05714
}

Semantic roles & 50–950 ramp

primary
#2835A5
secondary
#C2B867
accent
#D344E4
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2835A5

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

Preview Lab → · Contrast checker → · Palette generator →

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