#2A35AC#2A35AC

#2A35AC is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.7% C 0.187 H 270.9°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2A35AC
RGBrgb(42, 53, 172)
HSLhsl(235, 61%, 42%)
HSVhsv(235, 76%, 67%)
CMYKcmyk(75.6%, 69.2%, 0%, 32.5%)
CIE-LABlab(29.45, 37.51, -64.48)
CIE-LCHlch(29.45, 74.60, 300.19°)
OKLaboklab(40.72% 0.0029 -0.1866)
OKLCHoklch(40.72% 0.187 270.9)
XYZxyz(9.6718, 6.0160, 39.6732)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A35AC #ACA12A
analogous
#2A76AC #2A35AC #602AAC
triadic
#2A35AC #AC2A35 #35AC2A
tetradic
#2A35AC #AC2A76 #ACA12A #2AAC60
square
#2A35AC #AC2A76 #ACA12A #2AAC60
split-complementary
#2A35AC #AC602A #76AC2A
monochromatic
#12174A #1E267B #2A35AC #424ED1 #737CDD

Accessibility & contrast

On white

9.53
#2A35AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A35AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A35AC
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A35AC#FFFFFF#000000##FFFFFF
##2A35AC1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB0
Deuteranopia (green-blind)
#003FAA
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a35ac;
/* rgb */ color: rgb(42, 53, 172);
/* oklch */ color: oklch(40.7% 0.187 270.9);
Tailwind
colors: {
  custom: {
    50: '#786dc6',
    500: '#2a35ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a35ac;
$custom-light: #786dc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a35ac",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 172
  },
  "hsl": {
    "h": 234.923,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.40718,
    "c": 0.18661,
    "h": 270.9
  },
  "luminance": 0.06017
}

Semantic roles & 50–950 ramp

primary
#2A35AC
secondary
#C4BD6D
accent
#D644E4
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2A35AC

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

Preview Lab → · Contrast checker → · Palette generator →

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