#2A2B71#2A2B71

#2A2B71 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.3% C 0.118 H 277.3°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#2A2B71
RGBrgb(42, 43, 113)
HSLhsl(239, 46%, 30%)
HSVhsv(239, 63%, 44%)
CMYKcmyk(62.8%, 61.9%, 0%, 55.7%)
CIE-LABlab(21.62, 22.63, -40.73)
CIE-LCHlch(21.62, 46.59, 299.05°)
OKLaboklab(33.35% 0.0149 -0.117)
OKLCHoklch(33.35% 0.118 277.3)
XYZxyz(4.7984, 3.4119, 16.0253)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B71 #71702A
analogous
#2A4E71 #2A2B71 #4C2A71
triadic
#2A2B71 #712A2B #2B712A
tetradic
#2A2B71 #712A4E #71702A #2A714C
square
#2A2B71 #712A4E #71702A #2A714C
split-complementary
#2A2B71 #714C2A #4E712A
monochromatic
#090918 #191A44 #2A2B71 #3B3C9E #5557C0

Accessibility & contrast

On white

12.48
#2A2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B71
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B71#FFFFFF#000000##FFFFFF
##2A2B711.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003773
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2b71;
/* rgb */ color: rgb(42, 43, 113);
/* oklch */ color: oklch(33.3% 0.118 277.3);
Tailwind
colors: {
  custom: {
    50: '#6c649a',
    500: '#2a2b71',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b71;
$custom-light: #6c649a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b71",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 239.155,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33347,
    "c": 0.11799,
    "h": 277.3
  },
  "luminance": 0.03412
}

Semantic roles & 50–950 ramp

primary
#2A2B71
secondary
#A3A254
accent
#D452D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2A2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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