#2A2B99#2A2B99

#2A2B99 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.173 H 273.7°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2A2B99
RGBrgb(42, 43, 153)
HSLhsl(239, 57%, 38%)
HSVhsv(239, 73%, 60%)
CMYKcmyk(72.5%, 71.9%, 0%, 40%)
CIE-LABlab(25.32, 36.99, -59.77)
CIE-LCHlch(25.32, 70.29, 301.75°)
OKLaboklab(37.17% 0.0111 -0.1728)
OKLCHoklch(37.17% 0.173 273.7)
XYZxyz(7.5666, 4.5192, 30.6043)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B99 #99982A
analogous
#2A6399 #2A2B99 #602A99
triadic
#2A2B99 #992A2B #2B992A
tetradic
#2A2B99 #992A63 #99982A #2A9960
square
#2A2B99 #992A63 #99982A #2A9960
split-complementary
#2A2B99 #99602A #63992A
monochromatic
#101039 #1D1E69 #2A2B99 #3839C8 #6869D6

Accessibility & contrast

On white

11.03
#2A2B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2A2B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B99
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B99#FFFFFF#000000##FFFFFF
##2A2B991.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#004A5F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2a2b99;
/* rgb */ color: rgb(42, 43, 153);
/* oklch */ color: oklch(37.2% 0.173 273.7);
Tailwind
colors: {
  custom: {
    50: '#7565b8',
    500: '#2a2b99',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b99;
$custom-light: #7565b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b99",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 239.459,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37172,
    "c": 0.17319,
    "h": 273.7
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#2A2B99
secondary
#BCBB63
accent
#DF48E0
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2A2B99

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

Preview Lab → · Contrast checker → · Palette generator →

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