#2A35A2#2A35A2

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

Color values

HEX#2A35A2
RGBrgb(42, 53, 162)
HSLhsl(235, 59%, 40%)
HSVhsv(235, 74%, 64%)
CMYKcmyk(74.1%, 67.3%, 0%, 36.5%)
CIE-LABlab(28.50, 33.93, -60.02)
CIE-LCHlch(28.50, 68.95, 299.48°)
OKLaboklab(39.74% 0.0039 -0.1736)
OKLCHoklch(39.74% 0.174 271.3)
XYZxyz(8.7473, 5.6462, 34.8042)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A35A2 #A2972A
analogous
#2A71A2 #2A35A2 #5B2AA2
triadic
#2A35A2 #A22A35 #35A22A
tetradic
#2A35A2 #A22A71 #A2972A #2AA25B
square
#2A35A2 #A22A71 #A2972A #2AA25B
split-complementary
#2A35A2 #A25B2A #71A22A
monochromatic
#111541 #1D2571 #2A35A2 #3D4ACD #6D77D9

Accessibility & contrast

On white

9.86
#2A35A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2A35A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A35A2
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A35A2#FFFFFF#000000##FFFFFF
##2A35A21.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#003EA0
Tritanopia (blue-blind)
#005267
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2a35a2;
/* rgb */ color: rgb(42, 53, 162);
/* oklch */ color: oklch(39.7% 0.174 271.3);
Tailwind
colors: {
  custom: {
    50: '#766cbf',
    500: '#2a35a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a35a2;
$custom-light: #766cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a35a2",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 234.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.39738,
    "c": 0.1736,
    "h": 271.3
  },
  "luminance": 0.05647
}

Semantic roles & 50–950 ramp

primary
#2A35A2
secondary
#C0B868
accent
#D446E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2A35A2

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

Preview Lab → · Contrast checker → · Palette generator →

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