#2A2BA0#2A2BA0

#2A2BA0 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.182 H 273.1°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2A2BA0
RGBrgb(42, 43, 160)
HSLhsl(239, 58%, 40%)
HSVhsv(239, 74%, 63%)
CMYKcmyk(73.8%, 73.1%, 0%, 37.3%)
CIE-LABlab(26.03, 39.42, -62.87)
CIE-LCHlch(26.03, 74.21, 302.09°)
OKLaboklab(37.9% 0.01 -0.1819)
OKLCHoklch(37.9% 0.182 273.1)
XYZxyz(8.1618, 4.7572, 33.7390)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2BA0 #A09F2A
analogous
#2A66A0 #2A2BA0 #642AA0
triadic
#2A2BA0 #A02A2B #2BA02A
tetradic
#2A2BA0 #A02A66 #A09F2A #2AA064
square
#2A2BA0 #A02A66 #A09F2A #2AA064
split-complementary
#2A2BA0 #A0642A #66A02A
monochromatic
#11113F #1D1E70 #2A2BA0 #3C3DCC #6C6DD8

Accessibility & contrast

On white

10.76
#2A2BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2A2BA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2BA0
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2BA0#FFFFFF#000000##FFFFFF
##2A2BA01.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A3
Deuteranopia (green-blind)
#00389E
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2a2ba0;
/* rgb */ color: rgb(42, 43, 160);
/* oklch */ color: oklch(37.9% 0.182 273.1);
Tailwind
colors: {
  custom: {
    50: '#7765bd',
    500: '#2a2ba0',
    950: '#000000',
  },
}
SCSS
$custom: #2a2ba0;
$custom-light: #7765bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2ba0",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 160
  },
  "hsl": {
    "h": 239.492,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37896,
    "c": 0.18215,
    "h": 273.1
  },
  "luminance": 0.04758
}

Semantic roles & 50–950 ramp

primary
#2A2BA0
secondary
#BFBE67
accent
#E046E2
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2A2BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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