#2A2B7D#2A2B7D

#2A2B7D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.135 H 276.1°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2A2B7D
RGBrgb(42, 43, 125)
HSLhsl(239, 50%, 33%)
HSVhsv(239, 66%, 49%)
CMYKcmyk(66.4%, 65.6%, 0%, 51%)
CIE-LABlab(22.65, 27.01, -46.70)
CIE-LCHlch(22.65, 53.95, 300.04°)
OKLaboklab(34.43% 0.0144 -0.1346)
OKLCHoklch(34.43% 0.135 276.1)
XYZxyz(5.5192, 3.7002, 19.8214)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2B7D #7D7C2A
analogous
#2A547D #2A2B7D #522A7D
triadic
#2A2B7D #7D2A2B #2B7D2A
tetradic
#2A2B7D #7D2A54 #7D7C2A #2A7D52
square
#2A2B7D #7D2A54 #7D7C2A #2A7D52
split-complementary
#2A2B7D #7D522A #547D2A
monochromatic
#0B0B21 #1B1B4F #2A2B7D #393BAB #5A5BC8

Accessibility & contrast

On white

12.07
#2A2B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2B7D
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2B7D#FFFFFF#000000##FFFFFF
##2A2B7D1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2b7d;
/* rgb */ color: rgb(42, 43, 125);
/* oklch */ color: oklch(34.4% 0.135 276.1);
Tailwind
colors: {
  custom: {
    50: '#6e64a3',
    500: '#2a2b7d',
    950: '#000000',
  },
}
SCSS
$custom: #2a2b7d;
$custom-light: #6e64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2b7d",
  "rgb": {
    "r": 42,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 239.277,
    "s": 49.701,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34428,
    "c": 0.13536,
    "h": 276.1
  },
  "luminance": 0.03701
}

Semantic roles & 50–950 ramp

primary
#2A2B7D
secondary
#ADAC56
accent
#D84FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2A2B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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