#2B2579#2B2579

#2B2579 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.137 H 279.0°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#2B2579
RGBrgb(43, 37, 121)
HSLhsl(244, 53%, 31%)
HSVhsv(244, 69%, 47%)
CMYKcmyk(64.5%, 69.4%, 0%, 52.5%)
CIE-LABlab(20.89, 29.67, -47.04)
CIE-LCHlch(20.89, 55.61, 302.24°)
OKLaboklab(33.05% 0.0214 -0.1356)
OKLCHoklch(33.05% 0.137 279)
XYZxyz(5.1079, 3.2168, 18.4372)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2579 #737925
analogous
#254979 #2B2579 #552579
triadic
#2B2579 #792B25 #25792B
tetradic
#2B2579 #792549 #737925 #257955
square
#2B2579 #792549 #737925 #257955
split-complementary
#2B2579 #795525 #497925
monochromatic
#0A081B #1A174A #2B2579 #3C33A8 #584FC9

Accessibility & contrast

On white

12.78
#2B2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2B2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2579
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2579#FFFFFF#000000##FFFFFF
##2B25791.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003B4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2b2579;
/* rgb */ color: rgb(43, 37, 121);
/* oklch */ color: oklch(33.1% 0.137 279.0);
Tailwind
colors: {
  custom: {
    50: '#6e60a1',
    500: '#2b2579',
    950: '#000000',
  },
}
SCSS
$custom: #2b2579;
$custom-light: #6e60a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2579",
  "rgb": {
    "r": 43,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 244.286,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33052,
    "c": 0.13725,
    "h": 279
  },
  "luminance": 0.03217
}

Semantic roles & 50–950 ramp

primary
#2B2579
secondary
#A5AB4E
accent
#DD4BD2
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2B2579

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

Preview Lab → · Contrast checker → · Palette generator →

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