#2A35AB#2A35AB

#2A35AB is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.185 H 270.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#2A35AB
RGBrgb(42, 53, 171)
HSLhsl(235, 61%, 42%)
HSVhsv(235, 75%, 67%)
CMYKcmyk(75.4%, 69%, 0%, 32.9%)
CIE-LABlab(29.36, 37.16, -64.04)
CIE-LCHlch(29.36, 74.04, 300.12°)
OKLaboklab(40.62% 0.003 -0.1853)
OKLCHoklch(40.62% 0.185 270.9)
XYZxyz(9.5761, 5.9777, 39.1693)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A35AB #ABA02A
analogous
#2A76AB #2A35AB #602AAB
triadic
#2A35AB #AB2A35 #35AB2A
tetradic
#2A35AB #AB2A76 #ABA02A #2AAB60
square
#2A35AB #AB2A76 #ABA02A #2AAB60
split-complementary
#2A35AB #AB602A #76AB2A
monochromatic
#121749 #1E267A #2A35AB #424ED1 #737CDD

Accessibility & contrast

On white

9.56
#2A35AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A35AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A35AB
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A35AB#FFFFFF#000000##FFFFFF
##2A35AB1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.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: #2a35ab;
/* rgb */ color: rgb(42, 53, 171);
/* oklch */ color: oklch(40.6% 0.185 270.9);
Tailwind
colors: {
  custom: {
    50: '#786dc5',
    500: '#2a35ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a35ab;
$custom-light: #786dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a35ab",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 171
  },
  "hsl": {
    "h": 234.884,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.40618,
    "c": 0.18532,
    "h": 270.9
  },
  "luminance": 0.05979
}

Semantic roles & 50–950 ramp

primary
#2A35AB
secondary
#C4BC6D
accent
#D644E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A35AB

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

Preview Lab → · Contrast checker → · Palette generator →

#2A35AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva