#2A35A6#2A35A6

#2A35A6 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.179 H 271.1°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#2A35A6
RGBrgb(42, 53, 166)
HSLhsl(235, 60%, 41%)
HSVhsv(235, 75%, 65%)
CMYKcmyk(74.7%, 68.1%, 0%, 34.9%)
CIE-LABlab(28.88, 35.37, -61.82)
CIE-LCHlch(28.88, 71.22, 299.77°)
OKLaboklab(40.13% 0.0035 -0.1788)
OKLCHoklch(40.13% 0.179 271.1)
XYZxyz(9.1085, 5.7907, 36.7067)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A35A6 #A69B2A
analogous
#2A73A6 #2A35A6 #5D2AA6
triadic
#2A35A6 #A62A35 #35A62A
tetradic
#2A35A6 #A62A73 #A69B2A #2AA65D
square
#2A35A6 #A62A73 #A69B2A #2AA65D
split-complementary
#2A35A6 #A65D2A #73A62A
monochromatic
#111644 #1E2575 #2A35A6 #3F4CCE #7079DB

Accessibility & contrast

On white

9.73
#2A35A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A35A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A35A6
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A35A6#FFFFFF#000000##FFFFFF
##2A35A61.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#003EA4
Tritanopia (blue-blind)
#005469
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a35a6;
/* rgb */ color: rgb(42, 53, 166);
/* oklch */ color: oklch(40.1% 0.179 271.1);
Tailwind
colors: {
  custom: {
    50: '#776cc1',
    500: '#2a35a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a35a6;
$custom-light: #776cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a35a6",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 166
  },
  "hsl": {
    "h": 234.677,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40126,
    "c": 0.17885,
    "h": 271.1
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A35A6

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

Preview Lab → · Contrast checker → · Palette generator →

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