#2B2C81#2B2C81

#2B2C81 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.139 H 276.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#2B2C81
RGBrgb(43, 44, 129)
HSLhsl(239, 50%, 34%)
HSVhsv(239, 67%, 51%)
CMYKcmyk(66.7%, 65.9%, 0%, 49.4%)
CIE-LABlab(23.34, 27.95, -48.11)
CIE-LCHlch(23.34, 55.64, 300.15°)
OKLaboklab(35.06% 0.0145 -0.1387)
OKLCHoklch(35.06% 0.139 276)
XYZxyz(5.8581, 3.8994, 21.2086)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2C81 #81802B
analogous
#2B5781 #2B2C81 #552B81
triadic
#2B2C81 #812B2C #2C812B
tetradic
#2B2C81 #812B57 #81802B #2B8155
square
#2B2C81 #812B57 #81802B #2B8155
split-complementary
#2B2C81 #81552B #57812B
monochromatic
#0C0D25 #1C1C53 #2B2C81 #3A3CAF #5D5FC9

Accessibility & contrast

On white

11.80
#2B2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2B2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2C81
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2C81#FFFFFF#000000##FFFFFF
##2B2C811.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00347F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b2c81;
/* rgb */ color: rgb(43, 44, 129);
/* oklch */ color: oklch(35.1% 0.139 276.0);
Tailwind
colors: {
  custom: {
    50: '#7065a6',
    500: '#2b2c81',
    950: '#000000',
  },
}
SCSS
$custom: #2b2c81;
$custom-light: #7065a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2c81",
  "rgb": {
    "r": 43,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 239.302,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35056,
    "c": 0.13945,
    "h": 276
  },
  "luminance": 0.039
}

Semantic roles & 50–950 ramp

primary
#2B2C81
secondary
#AFAE59
accent
#D84EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2B2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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