#2835A3#2835A3

#2835A3 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.7% C 0.175 H 270.5°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#2835A3
RGBrgb(40, 53, 163)
HSLhsl(234, 61%, 40%)
HSVhsv(234, 75%, 64%)
CMYKcmyk(75.5%, 67.5%, 0%, 36.1%)
CIE-LABlab(28.49, 34.07, -60.65)
CIE-LCHlch(28.49, 69.57, 299.32°)
OKLaboklab(39.73% 0.0017 -0.1754)
OKLCHoklch(39.73% 0.175 270.5)
XYZxyz(8.7568, 5.6407, 35.2705)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2835A3 #A39628
analogous
#2872A3 #2835A3 #5928A3
triadic
#2835A3 #A32835 #35A328
tetradic
#2835A3 #A32872 #A39628 #28A359
square
#2835A3 #A32872 #A39628 #28A359
split-complementary
#2835A3 #A35928 #72A328
monochromatic
#101541 #1C2572 #2835A3 #3A49CF #6B77DB

Accessibility & contrast

On white

9.87
#2835A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2835A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2835A3
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2835A3#FFFFFF#000000##FFFFFF
##2835A31.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A6
Deuteranopia (green-blind)
#003DA1
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2835a3;
/* rgb */ color: rgb(40, 53, 163);
/* oklch */ color: oklch(39.7% 0.175 270.5);
Tailwind
colors: {
  custom: {
    50: '#766cbf',
    500: '#2835a3',
    950: '#000000',
  },
}
SCSS
$custom: #2835a3;
$custom-light: #766cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2835a3",
  "rgb": {
    "r": 40,
    "g": 53,
    "b": 163
  },
  "hsl": {
    "h": 233.659,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39727,
    "c": 0.17546,
    "h": 270.5
  },
  "luminance": 0.05642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2835A3

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

Preview Lab → · Contrast checker → · Palette generator →

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