#2A2BA3#2A2BA3

#2A2BA3 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.186 H 272.9°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2A2BA3
RGBrgb(42, 43, 163)
HSLhsl(240, 59%, 40%)
HSVhsv(240, 74%, 64%)
CMYKcmyk(74.2%, 73.6%, 0%, 36.1%)
CIE-LABlab(26.34, 40.45, -64.18)
CIE-LCHlch(26.34, 75.86, 302.22°)
OKLaboklab(38.21% 0.0095 -0.1857)
OKLCHoklch(38.21% 0.186 272.9)
XYZxyz(8.4274, 4.8635, 35.1378)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BA3 #A3A22A
analogous
#2A68A3 #2A2BA3 #652AA3
triadic
#2A2BA3 #A32A2B #2BA32A
tetradic
#2A2BA3 #A32A68 #A3A22A #2AA365
square
#2A2BA3 #A32A68 #A3A22A #2AA365
split-complementary
#2A2BA3 #A3652A #68A32A
monochromatic
#111142 #1D1E72 #2A2BA3 #3D3ECD #6E6FDA

Accessibility & contrast

On white

10.64
#2A2BA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2A2BA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BA3
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BA3#FFFFFF#000000##FFFFFF
##2A2BA31.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A7
Deuteranopia (green-blind)
#0038A1
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2ba3;
/* rgb */ color: rgb(42, 43, 163);
/* oklch */ color: oklch(38.2% 0.186 272.9);
Tailwind
colors: {
  custom: {
    50: '#7766bf',
    500: '#2a2ba3',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ba3;
$custom-light: #7766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ba3",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 163
  },
  "hsl": {
    "h": 239.504,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38211,
    "c": 0.18593,
    "h": 272.9
  },
  "luminance": 0.04864
}

Semantic roles & 50–950 ramp

primary
#2A2BA3
secondary
#C0C068
accent
#E146E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2BA3

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

Preview Lab → · Contrast checker → · Palette generator →

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