#2A3DAB#2A3DAB

#2A3DAB is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.0% C 0.176 H 269.4°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#2A3DAB
RGBrgb(42, 61, 171)
HSLhsl(231, 61%, 42%)
HSVhsv(231, 75%, 67%)
CMYKcmyk(75.4%, 64.3%, 0%, 32.9%)
CIE-LABlab(31.27, 32.05, -60.89)
CIE-LCHlch(31.27, 68.81, 297.76°)
OKLaboklab(42.02% -0.0018 -0.1761)
OKLCHoklch(42.02% 0.176 269.4)
XYZxyz(9.9717, 6.7689, 39.3012)
Luminance0.0677 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3DAB #AB982A
analogous
#2A7EAB #2A3DAB #582AAB
triadic
#2A3DAB #AB2A3D #3DAB2A
tetradic
#2A3DAB #AB2A7E #AB982A #2AAB58
square
#2A3DAB #AB2A7E #AB982A #2AAB58
split-complementary
#2A3DAB #AB582A #7EAB2A
monochromatic
#121A49 #1E2B7A #2A3DAB #4257D1 #7382DD

Accessibility & contrast

On white

8.92
#2A3DAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#2A3DAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3DAB
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3DAB#FFFFFF#000000##FFFFFF
##2A3DAB1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0044A9
Tritanopia (blue-blind)
#005A6E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2a3dab;
/* rgb */ color: rgb(42, 61, 171);
/* oklch */ color: oklch(42.0% 0.176 269.4);
Tailwind
colors: {
  custom: {
    50: '#7872c5',
    500: '#2a3dab',
    950: '#000000',
  },
}
SCSS
$custom: #2a3dab;
$custom-light: #7872c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3dab",
  "rgb": {
    "r": 42,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 231.163,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42019,
    "c": 0.17606,
    "h": 269.4
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#2A3DAB
secondary
#C4B76D
accent
#CC44E4
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A3DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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