#2A2B97#2A2B97

#2A2B97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.0% C 0.171 H 273.8°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2A2B97
RGBrgb(42, 43, 151)
HSLhsl(239, 56%, 38%)
HSVhsv(239, 72%, 59%)
CMYKcmyk(72.2%, 71.5%, 0%, 40.8%)
CIE-LABlab(25.12, 36.30, -58.87)
CIE-LCHlch(25.12, 69.16, 301.65°)
OKLaboklab(36.97% 0.0114 -0.1702)
OKLCHoklch(36.97% 0.171 273.8)
XYZxyz(7.4028, 4.4536, 29.7417)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B97 #97962A
analogous
#2A6197 #2A2B97 #602A97
triadic
#2A2B97 #972A2B #2B972A
tetradic
#2A2B97 #972A61 #97962A #2A9760
square
#2A2B97 #972A61 #97962A #2A9760
split-complementary
#2A2B97 #97602A #61972A
monochromatic
#0F1037 #1D1D67 #2A2B97 #3739C7 #6768D5

Accessibility & contrast

On white

11.11
#2A2B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2A2B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B97
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B97#FFFFFF#000000##FFFFFF
##2A2B971.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2b97;
/* rgb */ color: rgb(42, 43, 151);
/* oklch */ color: oklch(37.0% 0.171 273.8);
Tailwind
colors: {
  custom: {
    50: '#7465b7',
    500: '#2a2b97',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b97;
$custom-light: #7465b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b97",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 239.45,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.36967,
    "c": 0.1706,
    "h": 273.8
  },
  "luminance": 0.04454
}

Semantic roles & 50–950 ramp

primary
#2A2B97
secondary
#BBBA62
accent
#DE48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2A2B97

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

Preview Lab → · Contrast checker → · Palette generator →

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