#2A2B79#2A2B79

#2A2B79 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.130 H 276.5°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2A2B79
RGBrgb(42, 43, 121)
HSLhsl(239, 48%, 32%)
HSVhsv(239, 65%, 47%)
CMYKcmyk(65.3%, 64.5%, 0%, 52.5%)
CIE-LABlab(22.30, 25.55, -44.74)
CIE-LCHlch(22.30, 51.52, 299.73°)
OKLaboklab(34.06% 0.0146 -0.1288)
OKLCHoklch(34.06% 0.13 276.5)
XYZxyz(5.2688, 3.6000, 18.5027)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B79 #79782A
analogous
#2A5279 #2A2B79 #512A79
triadic
#2A2B79 #792A2B #2B792A
tetradic
#2A2B79 #792A52 #79782A #2A7951
square
#2A2B79 #792A52 #79782A #2A7951
split-complementary
#2A2B79 #79512A #52792A
monochromatic
#0A0B1E #1A1B4C #2A2B79 #3A3BA6 #585AC5

Accessibility & contrast

On white

12.21
#2A2B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2A2B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B79
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B79#FFFFFF#000000##FFFFFF
##2A2B791.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#003277
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2a2b79;
/* rgb */ color: rgb(42, 43, 121);
/* oklch */ color: oklch(34.1% 0.130 276.5);
Tailwind
colors: {
  custom: {
    50: '#6d64a0',
    500: '#2a2b79',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b79;
$custom-light: #6d64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b79",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 239.241,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3406,
    "c": 0.12966,
    "h": 276.5
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#2A2B79
secondary
#ABAA54
accent
#D650D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08050F
muted
#7A7A7E

Preview Lab

Preview with #2A2B79

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

Preview Lab → · Contrast checker → · Palette generator →

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