#2A35B5#2A35B5

#2A35B5 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.6% C 0.198 H 270.5°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#2A35B5
RGBrgb(42, 53, 181)
HSLhsl(235, 62%, 44%)
HSVhsv(235, 77%, 71%)
CMYKcmyk(76.8%, 70.7%, 0%, 29%)
CIE-LABlab(30.34, 40.69, -68.40)
CIE-LCHlch(30.34, 79.59, 300.75°)
OKLaboklab(41.62% 0.0019 -0.198)
OKLCHoklch(41.62% 0.198 270.5)
XYZxyz(10.5656, 6.3735, 44.3805)
Luminance0.0638 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A35B5 #B5AA2A
analogous
#2A7AB5 #2A35B5 #642AB5
triadic
#2A35B5 #B52A35 #35B52A
tetradic
#2A35B5 #B52A7A #B5AA2A #2AB564
square
#2A35B5 #B52A7A #B5AA2A #2AB564
split-complementary
#2A35B5 #B5642A #7AB52A
monochromatic
#131852 #1E2683 #2A35B5 #4853D4 #7982E0

Accessibility & contrast

On white

9.23
#2A35B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2A35B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A35B5
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A35B5#FFFFFF#000000##FFFFFF
##2A35B51.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB9
Deuteranopia (green-blind)
#0041B3
Tritanopia (blue-blind)
#005971
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a35b5;
/* rgb */ color: rgb(42, 53, 181);
/* oklch */ color: oklch(41.6% 0.198 270.5);
Tailwind
colors: {
  custom: {
    50: '#7b6dcc',
    500: '#2a35b5',
    950: '#000000',
  },
}
SCSS
$custom: #2a35b5;
$custom-light: #7b6dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a35b5",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 181
  },
  "hsl": {
    "h": 235.252,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41621,
    "c": 0.19803,
    "h": 270.5
  },
  "luminance": 0.06375
}

Semantic roles & 50–950 ramp

primary
#2A35B5
secondary
#C8C173
accent
#D942E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #2A35B5

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

Preview Lab → · Contrast checker → · Palette generator →

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