#2B2E87#2B2E87

#2B2E87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.145 H 274.9°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2B2E87
RGBrgb(43, 46, 135)
HSLhsl(238, 52%, 35%)
HSVhsv(238, 68%, 53%)
CMYKcmyk(68.1%, 65.9%, 0%, 47.1%)
CIE-LABlab(24.37, 28.81, -50.18)
CIE-LCHlch(24.37, 57.86, 299.86°)
OKLaboklab(35.98% 0.0123 -0.1447)
OKLCHoklch(35.98% 0.145 274.9)
XYZxyz(6.3450, 4.2163, 23.3964)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2E87 #87842B
analogous
#2B5C87 #2B2E87 #562B87
triadic
#2B2E87 #872B2E #2E872B
tetradic
#2B2E87 #872B5C #87842B #2B8756
square
#2B2E87 #872B5C #87842B #2B8756
split-complementary
#2B2E87 #87562B #5C872B
monochromatic
#0D0E2A #1C1E59 #2B2E87 #3A3EB5 #6064CC

Accessibility & contrast

On white

11.39
#2B2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2B2E87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2E87
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2E87#FFFFFF#000000##FFFFFF
##2B2E871.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b2e87;
/* rgb */ color: rgb(43, 46, 135);
/* oklch */ color: oklch(36.0% 0.145 274.9);
Tailwind
colors: {
  custom: {
    50: '#7167ab',
    500: '#2b2e87',
    950: '#000000',
  },
}
SCSS
$custom: #2b2e87;
$custom-light: #7167ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2e87",
  "rgb": {
    "r": 43,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 238.043,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35981,
    "c": 0.14527,
    "h": 274.9
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#2B2E87
secondary
#B2B05B
accent
#D64DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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