#2A35A7#2A35A7

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

Color values

HEX#2A35A7
RGBrgb(42, 53, 167)
HSLhsl(235, 60%, 41%)
HSVhsv(235, 75%, 65%)
CMYKcmyk(74.9%, 68.3%, 0%, 34.5%)
CIE-LABlab(28.97, 35.73, -62.27)
CIE-LCHlch(28.97, 71.79, 299.85°)
OKLaboklab(40.22% 0.0034 -0.1801)
OKLCHoklch(40.22% 0.18 271.1)
XYZxyz(9.2006, 5.8275, 37.1917)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A35A7 #A79C2A
analogous
#2A73A7 #2A35A7 #5D2AA7
triadic
#2A35A7 #A72A35 #35A72A
tetradic
#2A35A7 #A72A73 #A79C2A #2AA75D
square
#2A35A7 #A72A73 #A79C2A #2AA75D
split-complementary
#2A35A7 #A75D2A #73A72A
monochromatic
#111645 #1E2576 #2A35A7 #3F4CCF #707ADB

Accessibility & contrast

On white

9.70
#2A35A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A35A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A35A7
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A35A7#FFFFFF#000000##FFFFFF
##2A35A71.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a35a7;
/* rgb */ color: rgb(42, 53, 167);
/* oklch */ color: oklch(40.2% 0.180 271.1);
Tailwind
colors: {
  custom: {
    50: '#776cc2',
    500: '#2a35a7',
    950: '#000000',
  },
}
SCSS
$custom: #2a35a7;
$custom-light: #776cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a35a7",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 167
  },
  "hsl": {
    "h": 234.72,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40224,
    "c": 0.18015,
    "h": 271.1
  },
  "luminance": 0.05828
}

Semantic roles & 50–950 ramp

primary
#2A35A7
secondary
#C2BA6B
accent
#D545E3
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A35A7

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

Preview Lab → · Contrast checker → · Palette generator →

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