#2A35A1#2A35A1

#2A35A1 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.6% C 0.172 H 271.3°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#2A35A1
RGBrgb(42, 53, 161)
HSLhsl(234, 59%, 40%)
HSVhsv(234, 74%, 63%)
CMYKcmyk(73.9%, 67.1%, 0%, 36.9%)
CIE-LABlab(28.41, 33.56, -59.57)
CIE-LCHlch(28.41, 68.37, 299.40°)
OKLaboklab(39.64% 0.004 -0.1722)
OKLCHoklch(39.64% 0.172 271.3)
XYZxyz(8.6588, 5.6108, 34.3380)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A35A1 #A1962A
analogous
#2A70A1 #2A35A1 #5B2AA1
triadic
#2A35A1 #A12A35 #35A12A
tetradic
#2A35A1 #A12A70 #A1962A #2AA15B
square
#2A35A1 #A12A70 #A1962A #2AA15B
split-complementary
#2A35A1 #A15B2A #70A12A
monochromatic
#111540 #1D2570 #2A35A1 #3C49CC #6D77D9

Accessibility & contrast

On white

9.89
#2A35A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2A35A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A35A1
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A35A1#FFFFFF#000000##FFFFFF
##2A35A11.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A4
Deuteranopia (green-blind)
#003D9F
Tritanopia (blue-blind)
#005266
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a35a1;
/* rgb */ color: rgb(42, 53, 161);
/* oklch */ color: oklch(39.6% 0.172 271.3);
Tailwind
colors: {
  custom: {
    50: '#766cbe',
    500: '#2a35a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a35a1;
$custom-light: #766cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2a35a1",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 161
  },
  "hsl": {
    "h": 234.454,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39641,
    "c": 0.17228,
    "h": 271.3
  },
  "luminance": 0.05612
}

Semantic roles & 50–950 ramp

primary
#2A35A1
secondary
#C0B767
accent
#D346E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A35A1

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

Preview Lab → · Contrast checker → · Palette generator →

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