#2B2A7C#2B2A7C

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

Color values

HEX#2B2A7C
RGBrgb(43, 42, 124)
HSLhsl(241, 49%, 33%)
HSVhsv(241, 66%, 49%)
CMYKcmyk(65.3%, 66.1%, 0%, 51.4%)
CIE-LABlab(22.39, 27.47, -46.50)
CIE-LCHlch(22.39, 54.01, 300.57°)
OKLaboklab(34.23% 0.0166 -0.134)
OKLCHoklch(34.23% 0.135 277.1)
XYZxyz(5.4611, 3.6243, 19.4766)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2A7C #7B7C2A
analogous
#2A527C #2B2A7C #542A7C
triadic
#2B2A7C #7C2B2A #2A7C2B
tetradic
#2B2A7C #7C2A52 #7B7C2A #2A7C54
square
#2B2A7C #7C2A52 #7B7C2A #2A7C54
split-complementary
#2B2A7C #7C542A #527C2A
monochromatic
#0B0B21 #1B1B4E #2B2A7C #3B39AA #5B59C7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2B2A7C#FFFFFF#000000##FFFFFF
##2B2A7C1.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)
#00397F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b2a7c;
/* rgb */ color: rgb(43, 42, 124);
/* oklch */ color: oklch(34.2% 0.135 277.1);
Tailwind
colors: {
  custom: {
    50: '#6f64a3',
    500: '#2b2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #2b2a7c;
$custom-light: #6f64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2a7c",
  "rgb": {
    "r": 43,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 240.732,
    "s": 49.398,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34225,
    "c": 0.13501,
    "h": 277.1
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#2B2A7C
secondary
#ABAD55
accent
#D94FD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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