#2B2B81#2B2B81

#2B2B81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.141 H 276.2°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#2B2B81
RGBrgb(43, 43, 129)
HSLhsl(240, 50%, 34%)
HSVhsv(240, 67%, 51%)
CMYKcmyk(66.7%, 66.7%, 0%, 49.4%)
CIE-LABlab(23.09, 28.61, -48.52)
CIE-LCHlch(23.09, 56.33, 300.53°)
OKLaboklab(34.87% 0.0153 -0.1399)
OKLCHoklch(34.87% 0.141 276.2)
XYZxyz(5.8213, 3.8258, 21.1963)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B81 #81812B
analogous
#2B5681 #2B2B81 #562B81
triadic
#2B2B81 #812B2B #2B812B
tetradic
#2B2B81 #812B56 #81812B #2B8156
square
#2B2B81 #812B56 #81812B #2B8156
split-complementary
#2B2B81 #81562B #56812B
monochromatic
#0C0C25 #1C1C53 #2B2B81 #3A3AAF #5D5DC9

Accessibility & contrast

On white

11.90
#2B2B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2B2B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B81
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B81#FFFFFF#000000##FFFFFF
##2B2B811.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004152
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b2b81;
/* rgb */ color: rgb(43, 43, 129);
/* oklch */ color: oklch(34.9% 0.141 276.2);
Tailwind
colors: {
  custom: {
    50: '#7064a6',
    500: '#2b2b81',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b81;
$custom-light: #7064a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b81",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 240,
    "s": 50,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34874,
    "c": 0.14074,
    "h": 276.2
  },
  "luminance": 0.03826
}

Semantic roles & 50–950 ramp

primary
#2B2B81
secondary
#AFAF59
accent
#DA4EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08050F
muted
#7B7A7F

Preview Lab

Preview with #2B2B81

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

Preview Lab → · Contrast checker → · Palette generator →

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