#2A35A5#2A35A5

#2A35A5 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.0% C 0.178 H 271.2°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#2A35A5
RGBrgb(42, 53, 165)
HSLhsl(235, 59%, 41%)
HSVhsv(235, 75%, 65%)
CMYKcmyk(74.5%, 67.9%, 0%, 35.3%)
CIE-LABlab(28.78, 35.01, -61.37)
CIE-LCHlch(28.78, 70.66, 299.70°)
OKLaboklab(40.03% 0.0036 -0.1775)
OKLCHoklch(40.03% 0.178 271.2)
XYZxyz(9.0172, 5.7541, 36.2254)
Luminance0.0575 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A35A5 #A59A2A
analogous
#2A72A5 #2A35A5 #5C2AA5
triadic
#2A35A5 #A52A35 #35A52A
tetradic
#2A35A5 #A52A72 #A59A2A #2AA55C
square
#2A35A5 #A52A72 #A59A2A #2AA55C
split-complementary
#2A35A5 #A55C2A #72A52A
monochromatic
#111643 #1E2574 #2A35A5 #3E4BCE #6F79DA

Accessibility & contrast

On white

9.76
#2A35A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A35A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A35A5
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A35A5#FFFFFF#000000##FFFFFF
##2A35A51.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA8
Deuteranopia (green-blind)
#003EA3
Tritanopia (blue-blind)
#005368
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a35a5;
/* rgb */ color: rgb(42, 53, 165);
/* oklch */ color: oklch(40.0% 0.178 271.2);
Tailwind
colors: {
  custom: {
    50: '#776cc1',
    500: '#2a35a5',
    950: '#000000',
  },
}
SCSS
$custom: #2a35a5;
$custom-light: #776cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a35a5",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 165
  },
  "hsl": {
    "h": 234.634,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40029,
    "c": 0.17755,
    "h": 271.2
  },
  "luminance": 0.05755
}

Semantic roles & 50–950 ramp

primary
#2A35A5
secondary
#C1B969
accent
#D545E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A35A5

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

Preview Lab → · Contrast checker → · Palette generator →

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