#2B2987#2B2987

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

Color values

HEX#2B2987
RGBrgb(43, 41, 135)
HSLhsl(241, 53%, 35%)
HSVhsv(241, 70%, 53%)
CMYKcmyk(68.1%, 69.6%, 0%, 47.1%)
CIE-LABlab(23.16, 32.04, -52.16)
CIE-LCHlch(23.16, 61.22, 301.56°)
OKLaboklab(35.1% 0.0163 -0.1506)
OKLCHoklch(35.1% 0.151 276.2)
XYZxyz(6.1609, 3.8482, 23.3351)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2987 #858729
analogous
#295687 #2B2987 #5A2987
triadic
#2B2987 #872B29 #29872B
tetradic
#2B2987 #872956 #858729 #29875A
square
#2B2987 #872956 #858729 #29875A
split-complementary
#2B2987 #875A29 #568729
monochromatic
#0D0C29 #1C1B58 #2B2987 #3A37B6 #5F5DCE

Accessibility & contrast

On white

11.87
#2B2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B2987
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2987#FFFFFF#000000##FFFFFF
##2B29871.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2b2987;
/* rgb */ color: rgb(43, 41, 135);
/* oklch */ color: oklch(35.1% 0.151 276.2);
Tailwind
colors: {
  custom: {
    50: '#7163ab',
    500: '#2b2987',
    950: '#000000',
  },
}
SCSS
$custom: #2b2987;
$custom-light: #7163ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2987",
  "rgb": {
    "r": 43,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 241.277,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35101,
    "c": 0.15146,
    "h": 276.2
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#2B2987
secondary
#B1B359
accent
#DD4BDA
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2B2987

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

Preview Lab → · Contrast checker → · Palette generator →

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