#2B2F87#2B2F87

#2B2F87 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.144 H 274.6°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#2B2F87
RGBrgb(43, 47, 135)
HSLhsl(237, 52%, 35%)
HSVhsv(237, 68%, 53%)
CMYKcmyk(68.1%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.62, 28.14, -49.77)
CIE-LCHlch(24.62, 57.18, 299.49°)
OKLaboklab(36.17% 0.0115 -0.1435)
OKLCHoklch(36.17% 0.144 274.6)
XYZxyz(6.3845, 4.2953, 23.4096)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2F87 #87832B
analogous
#2B5D87 #2B2F87 #552B87
triadic
#2B2F87 #872B2F #2F872B
tetradic
#2B2F87 #872B5D #87832B #2B8755
square
#2B2F87 #872B5D #87832B #2B8755
split-complementary
#2B2F87 #87552B #5D872B
monochromatic
#0D0F2A #1C1F59 #2B2F87 #3A3FB5 #6065CC

Accessibility & contrast

On white

11.30
#2B2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2B2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2F87
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2F87#FFFFFF#000000##FFFFFF
##2B2F871.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2f87;
/* rgb */ color: rgb(43, 47, 135);
/* oklch */ color: oklch(36.2% 0.144 274.6);
Tailwind
colors: {
  custom: {
    50: '#7167ab',
    500: '#2b2f87',
    950: '#000000',
  },
}
SCSS
$custom: #2b2f87;
$custom-light: #7167ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2f87",
  "rgb": {
    "r": 43,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 237.391,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36165,
    "c": 0.144,
    "h": 274.6
  },
  "luminance": 0.04296
}

Semantic roles & 50–950 ramp

primary
#2B2F87
secondary
#B2AF5B
accent
#D54DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2B2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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