#2835AB#2835AB

#2835AB is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.5% C 0.186 H 270.3°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#2835AB
RGBrgb(40, 53, 171)
HSLhsl(234, 62%, 41%)
HSVhsv(234, 77%, 67%)
CMYKcmyk(76.6%, 69%, 0%, 32.9%)
CIE-LABlab(29.25, 36.96, -64.22)
CIE-LCHlch(29.25, 74.09, 299.92°)
OKLaboklab(40.52% 0.001 -0.1859)
OKLCHoklch(40.52% 0.186 270.3)
XYZxyz(9.4964, 5.9366, 39.1656)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2835AB #AB9E28
analogous
#2877AB #2835AB #5D28AB
triadic
#2835AB #AB2835 #35AB28
tetradic
#2835AB #AB2877 #AB9E28 #28AB5D
square
#2835AB #AB2877 #AB9E28 #28AB5D
split-complementary
#2835AB #AB5D28 #77AB28
monochromatic
#111648 #1C2679 #2835AB #3E4DD2 #707BDE

Accessibility & contrast

On white

9.60
#2835AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2835AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2835AB
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2835AB#FFFFFF#000000##FFFFFF
##2835AB1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#003FA9
Tritanopia (blue-blind)
#00556B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2835ab;
/* rgb */ color: rgb(40, 53, 171);
/* oklch */ color: oklch(40.5% 0.186 270.3);
Tailwind
colors: {
  custom: {
    50: '#786cc5',
    500: '#2835ab',
    950: '#000000',
  },
}
SCSS
$custom: #2835ab;
$custom-light: #786cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2835ab",
  "rgb": {
    "r": 40,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 234.046,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40515,
    "c": 0.18586,
    "h": 270.3
  },
  "luminance": 0.05938
}

Semantic roles & 50–950 ramp

primary
#2835AB
secondary
#C4BB6A
accent
#D543E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2835AB

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

Preview Lab → · Contrast checker → · Palette generator →

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