#2A2BA2#2A2BA2

#2A2BA2 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.185 H 273.0°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#2A2BA2
RGBrgb(42, 43, 162)
HSLhsl(240, 59%, 40%)
HSVhsv(240, 74%, 64%)
CMYKcmyk(74.1%, 73.5%, 0%, 36.5%)
CIE-LABlab(26.24, 40.10, -63.74)
CIE-LCHlch(26.24, 75.31, 302.18°)
OKLaboklab(38.11% 0.0096 -0.1844)
OKLCHoklch(38.11% 0.185 273)
XYZxyz(8.3381, 4.8278, 34.6678)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BA2 #A2A12A
analogous
#2A67A2 #2A2BA2 #652AA2
triadic
#2A2BA2 #A22A2B #2BA22A
tetradic
#2A2BA2 #A22A67 #A2A12A #2AA265
square
#2A2BA2 #A22A67 #A2A12A #2AA265
split-complementary
#2A2BA2 #A2652A #67A22A
monochromatic
#111141 #1D1E71 #2A2BA2 #3D3ECD #6D6ED9

Accessibility & contrast

On white

10.68
#2A2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2BA2
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BA2#FFFFFF#000000##FFFFFF
##2A2BA21.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2ba2;
/* rgb */ color: rgb(42, 43, 162);
/* oklch */ color: oklch(38.1% 0.185 273.0);
Tailwind
colors: {
  custom: {
    50: '#7766bf',
    500: '#2a2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ba2;
$custom-light: #7766bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ba2",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 239.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.38106,
    "c": 0.18467,
    "h": 273
  },
  "luminance": 0.04829
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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