#2835AF#2835AF

#2835AF is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.9% C 0.191 H 270.2°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#2835AF
RGBrgb(40, 53, 175)
HSLhsl(234, 63%, 42%)
HSVhsv(234, 77%, 69%)
CMYKcmyk(77.1%, 69.7%, 0%, 31.4%)
CIE-LABlab(29.64, 38.39, -65.97)
CIE-LCHlch(29.64, 76.33, 300.20°)
OKLaboklab(40.92% 0.0005 -0.191)
OKLCHoklch(40.92% 0.191 270.2)
XYZxyz(9.8834, 6.0914, 41.2040)
Luminance0.0609 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2835AF #AFA228
analogous
#2879AF #2835AF #5E28AF
triadic
#2835AF #AF2835 #35AF28
tetradic
#2835AF #AF2879 #AFA228 #28AF5E
square
#2835AF #AF2879 #AFA228 #28AF5E
split-complementary
#2835AF #AF5E28 #79AF28
monochromatic
#11174B #1D267D #2835AF #414FD4 #737DDF

Accessibility & contrast

On white

9.47
#2835AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#2835AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2835AF
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2835AF#FFFFFF#000000##FFFFFF
##2835AF1.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB3
Deuteranopia (green-blind)
#003FAD
Tritanopia (blue-blind)
#00576E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2835af;
/* rgb */ color: rgb(40, 53, 175);
/* oklch */ color: oklch(40.9% 0.191 270.2);
Tailwind
colors: {
  custom: {
    50: '#796dc8',
    500: '#2835af',
    950: '#000000',
  },
}
SCSS
$custom: #2835af;
$custom-light: #796dc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2835af",
  "rgb": {
    "r": 40,
    "g": 53,
    "b": 175
  },
  "hsl": {
    "h": 234.222,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.40915,
    "c": 0.19098,
    "h": 270.2
  },
  "luminance": 0.06092
}

Semantic roles & 50–950 ramp

primary
#2835AF
secondary
#C6BD6D
accent
#D642E6
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2835AF

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

Preview Lab → · Contrast checker → · Palette generator →

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