#2835A2#2835A2

#2835A2 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.6% C 0.174 H 270.6°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#2835A2
RGBrgb(40, 53, 162)
HSLhsl(234, 60%, 40%)
HSVhsv(234, 75%, 64%)
CMYKcmyk(75.3%, 67.3%, 0%, 36.5%)
CIE-LABlab(28.39, 33.70, -60.20)
CIE-LCHlch(28.39, 69.00, 299.24°)
OKLaboklab(39.63% 0.0018 -0.1741)
OKLCHoklch(39.63% 0.174 270.6)
XYZxyz(8.6675, 5.6050, 34.8005)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2835A2 #A29528
analogous
#2872A2 #2835A2 #5828A2
triadic
#2835A2 #A22835 #35A228
tetradic
#2835A2 #A22872 #A29528 #28A258
square
#2835A2 #A22872 #A29528 #28A258
split-complementary
#2835A2 #A25828 #72A228
monochromatic
#101540 #1C2571 #2835A2 #3949CE #6A76DA

Accessibility & contrast

On white

9.90
#2835A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2835A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2835A2
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2835A2#FFFFFF#000000##FFFFFF
##2835A21.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#003DA0
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2835a2;
/* rgb */ color: rgb(40, 53, 162);
/* oklch */ color: oklch(39.6% 0.174 270.6);
Tailwind
colors: {
  custom: {
    50: '#756cbf',
    500: '#2835a2',
    950: '#000000',
  },
}
SCSS
$custom: #2835a2;
$custom-light: #756cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2835a2",
  "rgb": {
    "r": 40,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 233.607,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3963,
    "c": 0.17414,
    "h": 270.6
  },
  "luminance": 0.05606
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2835A2

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

Preview Lab → · Contrast checker → · Palette generator →

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