#2A35B3#2A35B3

#2A35B3 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 41.4% C 0.196 H 270.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#2A35B3
RGBrgb(42, 53, 179)
HSLhsl(235, 62%, 43%)
HSVhsv(235, 77%, 70%)
CMYKcmyk(76.5%, 70.4%, 0%, 29.8%)
CIE-LABlab(30.14, 39.99, -67.54)
CIE-LCHlch(30.14, 78.49, 300.63°)
OKLaboklab(41.42% 0.0021 -0.1955)
OKLCHoklch(41.42% 0.196 270.6)
XYZxyz(10.3619, 6.2920, 43.3075)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A35B3 #B3A82A
analogous
#2A7AB3 #2A35B3 #632AB3
triadic
#2A35B3 #B32A35 #35B32A
tetradic
#2A35B3 #B32A7A #B3A82A #2AB363
square
#2A35B3 #B32A7A #B3A82A #2AB363
split-complementary
#2A35B3 #B3632A #7AB32A
monochromatic
#131850 #1E2681 #2A35B3 #4652D4 #7880DF

Accessibility & contrast

On white

9.30
#2A35B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A35B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A35B3
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A35B3#FFFFFF#000000##FFFFFF
##2A35B31.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#005870
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a35b3;
/* rgb */ color: rgb(42, 53, 179);
/* oklch */ color: oklch(41.4% 0.196 270.6);
Tailwind
colors: {
  custom: {
    50: '#7a6dcb',
    500: '#2a35b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a35b3;
$custom-light: #7a6dcb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a35b3",
  "rgb": {
    "r": 42,
    "g": 53,
    "b": 179
  },
  "hsl": {
    "h": 235.182,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41419,
    "c": 0.19551,
    "h": 270.6
  },
  "luminance": 0.06293
}

Semantic roles & 50–950 ramp

primary
#2A35B3
secondary
#C7C072
accent
#D843E5
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2A35B3

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

Preview Lab → · Contrast checker → · Palette generator →

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