#2835AC#2835AC

#2835AC is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.187 H 270.3°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2835AC
RGBrgb(40, 53, 172)
HSLhsl(234, 62%, 42%)
HSVhsv(234, 77%, 67%)
CMYKcmyk(76.7%, 69.2%, 0%, 32.5%)
CIE-LABlab(29.35, 37.32, -64.66)
CIE-LCHlch(29.35, 74.65, 299.99°)
OKLaboklab(40.61% 0.0009 -0.1871)
OKLCHoklch(40.61% 0.187 270.3)
XYZxyz(9.5920, 5.9748, 39.6695)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2835AC #AC9F28
analogous
#2877AC #2835AC #5D28AC
triadic
#2835AC #AC2835 #35AC28
tetradic
#2835AC #AC2877 #AC9F28 #28AC5D
square
#2835AC #AC2877 #AC9F28 #28AC5D
split-complementary
#2835AC #AC5D28 #77AC28
monochromatic
#111649 #1C267A #2835AC #3F4DD2 #717BDE

Accessibility & contrast

On white

9.57
#2835AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2835AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2835AC
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2835AC#FFFFFF#000000##FFFFFF
##2835AC1.009.572.209.57
#FFFFFF9.571.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#003FAA
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2835ac;
/* rgb */ color: rgb(40, 53, 172);
/* oklch */ color: oklch(40.6% 0.187 270.3);
Tailwind
colors: {
  custom: {
    50: '#786cc6',
    500: '#2835ac',
    950: '#000000',
  },
}
SCSS
$custom: #2835ac;
$custom-light: #786cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2835ac",
  "rgb": {
    "r": 40,
    "g": 53,
    "b": 172
  },
  "hsl": {
    "h": 234.091,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40614,
    "c": 0.18714,
    "h": 270.3
  },
  "luminance": 0.05976
}

Semantic roles & 50–950 ramp

primary
#2835AC
secondary
#C5BC6B
accent
#D542E5
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2835AC

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

Preview Lab → · Contrast checker → · Palette generator →

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