#2A2B7A#2A2B7A

#2A2B7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.2% C 0.131 H 276.4°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#2A2B7A
RGBrgb(42, 43, 122)
HSLhsl(239, 49%, 32%)
HSVhsv(239, 66%, 48%)
CMYKcmyk(65.6%, 64.8%, 0%, 52.2%)
CIE-LABlab(22.39, 25.91, -45.23)
CIE-LCHlch(22.39, 52.13, 299.81°)
OKLaboklab(34.15% 0.0146 -0.1303)
OKLCHoklch(34.15% 0.131 276.4)
XYZxyz(5.3304, 3.6247, 18.8273)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B7A #7A792A
analogous
#2A537A #2A2B7A #512A7A
triadic
#2A2B7A #7A2A2B #2B7A2A
tetradic
#2A2B7A #7A2A53 #7A792A #2A7A51
square
#2A2B7A #7A2A53 #7A792A #2A7A51
split-complementary
#2A2B7A #7A512A #537A2A
monochromatic
#0B0B1F #1A1B4C #2A2B7A #3A3BA8 #595AC6

Accessibility & contrast

On white

12.17
#2A2B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2A2B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B7A
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B7A#FFFFFF#000000##FFFFFF
##2A2B7A1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2b7a;
/* rgb */ color: rgb(42, 43, 122);
/* oklch */ color: oklch(34.2% 0.131 276.4);
Tailwind
colors: {
  custom: {
    50: '#6e64a1',
    500: '#2a2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b7a;
$custom-light: #6e64a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b7a",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 239.25,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34151,
    "c": 0.13109,
    "h": 276.4
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#2A2B7A
secondary
#ABAA55
accent
#D74FD8
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2A2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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