#2B2C87#2B2C87

#2B2C87 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.148 H 275.4°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#2B2C87
RGBrgb(43, 44, 135)
HSLhsl(239, 52%, 35%)
HSVhsv(239, 68%, 53%)
CMYKcmyk(68.1%, 67.4%, 0%, 47.1%)
CIE-LABlab(23.88, 30.11, -50.99)
CIE-LCHlch(23.88, 59.22, 300.57°)
OKLaboklab(35.62% 0.0139 -0.1471)
OKLCHoklch(35.62% 0.148 275.4)
XYZxyz(6.2687, 4.0637, 23.3710)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2C87 #87862B
analogous
#2B5A87 #2B2C87 #582B87
triadic
#2B2C87 #872B2C #2C872B
tetradic
#2B2C87 #872B5A #87862B #2B8758
square
#2B2C87 #872B5A #87862B #2B8758
split-complementary
#2B2C87 #87582B #5A872B
monochromatic
#0D0E2A #1C1D59 #2B2C87 #3A3BB5 #6061CC

Accessibility & contrast

On white

11.58
#2B2C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2B2C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2C87
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2C87#FFFFFF#000000##FFFFFF
##2B2C871.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2b2c87;
/* rgb */ color: rgb(43, 44, 135);
/* oklch */ color: oklch(35.6% 0.148 275.4);
Tailwind
colors: {
  custom: {
    50: '#7165ab',
    500: '#2b2c87',
    950: '#000000',
  },
}
SCSS
$custom: #2b2c87;
$custom-light: #7165ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2c87",
  "rgb": {
    "r": 43,
    "g": 44,
    "b": 135
  },
  "hsl": {
    "h": 239.348,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35621,
    "c": 0.14779,
    "h": 275.4
  },
  "luminance": 0.04064
}

Semantic roles & 50–950 ramp

primary
#2B2C87
secondary
#B2B15B
accent
#DA4DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2B2C87

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

Preview Lab → · Contrast checker → · Palette generator →

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