#2A2B72#2A2B72

#2A2B72 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.4% C 0.119 H 277.2°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#2A2B72
RGBrgb(42, 43, 114)
HSLhsl(239, 46%, 31%)
HSVhsv(239, 63%, 45%)
CMYKcmyk(63.2%, 62.3%, 0%, 55.3%)
CIE-LABlab(21.71, 22.99, -41.24)
CIE-LCHlch(21.71, 47.21, 299.14°)
OKLaboklab(33.43% 0.0149 -0.1185)
OKLCHoklch(33.43% 0.119 277.2)
XYZxyz(4.8550, 3.4345, 16.3234)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B72 #72712A
analogous
#2A4F72 #2A2B72 #4D2A72
triadic
#2A2B72 #722A2B #2B722A
tetradic
#2A2B72 #722A4F #72712A #2A724D
square
#2A2B72 #722A4F #72712A #2A724D
split-complementary
#2A2B72 #724D2A #4F722A
monochromatic
#090919 #1A1A45 #2A2B72 #3A3C9F #5657C1

Accessibility & contrast

On white

12.45
#2A2B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2A2B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B72
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B72#FFFFFF#000000##FFFFFF
##2A2B721.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2b72;
/* rgb */ color: rgb(42, 43, 114);
/* oklch */ color: oklch(33.4% 0.119 277.2);
Tailwind
colors: {
  custom: {
    50: '#6c649b',
    500: '#2a2b72',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b72;
$custom-light: #6c649b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b72",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 239.167,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33434,
    "c": 0.11946,
    "h": 277.2
  },
  "luminance": 0.03435
}

Semantic roles & 50–950 ramp

primary
#2A2B72
secondary
#A4A354
accent
#D452D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2A2B72

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

Preview Lab → · Contrast checker → · Palette generator →

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