#2A3EAB#2A3EAB

#2A3EAB is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.175 H 269.2°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#2A3EAB
RGBrgb(42, 62, 171)
HSLhsl(231, 61%, 42%)
HSVhsv(231, 75%, 67%)
CMYKcmyk(75.4%, 63.7%, 0%, 32.9%)
CIE-LABlab(31.52, 31.40, -60.48)
CIE-LCHlch(31.52, 68.15, 297.43°)
OKLaboklab(42.2% -0.0024 -0.1748)
OKLCHoklch(42.2% 0.175 269.2)
XYZxyz(10.0256, 6.8767, 39.3191)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3EAB #AB972A
analogous
#2A7FAB #2A3EAB #572AAB
triadic
#2A3EAB #AB2A3E #3EAB2A
tetradic
#2A3EAB #AB2A7F #AB972A #2AAB57
square
#2A3EAB #AB2A7F #AB972A #2AAB57
split-complementary
#2A3EAB #AB572A #7FAB2A
monochromatic
#121A49 #1E2C7A #2A3EAB #4258D1 #7383DD

Accessibility & contrast

On white

8.84
#2A3EAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#2A3EAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3EAB
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3EAB#FFFFFF#000000##FFFFFF
##2A3EAB1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.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: #2a3eab;
/* rgb */ color: rgb(42, 62, 171);
/* oklch */ color: oklch(42.2% 0.175 269.2);
Tailwind
colors: {
  custom: {
    50: '#7773c5',
    500: '#2a3eab',
    950: '#000000',
  },
}
SCSS
$custom: #2a3eab;
$custom-light: #7773c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3eab",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 171
  },
  "hsl": {
    "h": 230.698,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42203,
    "c": 0.17487,
    "h": 269.2
  },
  "luminance": 0.06878
}

Semantic roles & 50–950 ramp

primary
#2A3EAB
secondary
#C4B66D
accent
#CB44E4
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2A3EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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