#2835B1#2835B1

#2835B1 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 41.1% C 0.194 H 270.1°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#2835B1
RGBrgb(40, 53, 177)
HSLhsl(234, 63%, 43%)
HSVhsv(234, 77%, 69%)
CMYKcmyk(77.4%, 70.1%, 0%, 30.6%)
CIE-LABlab(29.84, 39.10, -66.84)
CIE-LCHlch(29.84, 77.44, 300.33°)
OKLaboklab(41.12% 0.0003 -0.1935)
OKLCHoklch(41.12% 0.194 270.1)
XYZxyz(10.0813, 6.1705, 42.2462)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2835B1 #B1A428
analogous
#2879B1 #2835B1 #6028B1
triadic
#2835B1 #B12835 #35B128
tetradic
#2835B1 #B12879 #B1A428 #28B160
square
#2835B1 #B12879 #B1A428 #28B160
split-complementary
#2835B1 #B16028 #79B128
monochromatic
#11174D #1D267F #2835B1 #4250D4 #747EE0

Accessibility & contrast

On white

9.40
#2835B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#2835B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2835B1
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2835B1#FFFFFF#000000##FFFFFF
##2835B11.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB5
Deuteranopia (green-blind)
#0040AF
Tritanopia (blue-blind)
#00576F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2835b1;
/* rgb */ color: rgb(40, 53, 177);
/* oklch */ color: oklch(41.1% 0.194 270.1);
Tailwind
colors: {
  custom: {
    50: '#796dc9',
    500: '#2835b1',
    950: '#000000',
  },
}
SCSS
$custom: #2835b1;
$custom-light: #796dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2835b1",
  "rgb": {
    "r": 40,
    "g": 53,
    "b": 177
  },
  "hsl": {
    "h": 234.307,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41116,
    "c": 0.19351,
    "h": 270.1
  },
  "luminance": 0.06172
}

Semantic roles & 50–950 ramp

primary
#2835B1
secondary
#C7BE6E
accent
#D742E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2835B1

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

Preview Lab → · Contrast checker → · Palette generator →

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