#2B2C97#2B2C97

#2B2C97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.169 H 274.1°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2B2C97
RGBrgb(43, 44, 151)
HSLhsl(239, 56%, 38%)
HSVhsv(239, 72%, 59%)
CMYKcmyk(71.5%, 70.9%, 0%, 40.8%)
CIE-LABlab(25.41, 35.80, -58.39)
CIE-LCHlch(25.41, 68.49, 301.51°)
OKLaboklab(37.19% 0.012 -0.1688)
OKLCHoklch(37.19% 0.169 274.1)
XYZxyz(7.4810, 4.5486, 29.7559)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2C97 #97962B
analogous
#2B6297 #2B2C97 #602B97
triadic
#2B2C97 #972B2C #2C972B
tetradic
#2B2C97 #972B62 #97962B #2B9760
square
#2B2C97 #972B62 #97962B #2B9760
split-complementary
#2B2C97 #97602B #62972B
monochromatic
#101038 #1D1E67 #2B2C97 #393AC7 #6869D4

Accessibility & contrast

On white

11.00
#2B2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2B2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2C97
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2C97#FFFFFF#000000##FFFFFF
##2B2C971.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b2c97;
/* rgb */ color: rgb(43, 44, 151);
/* oklch */ color: oklch(37.2% 0.169 274.1);
Tailwind
colors: {
  custom: {
    50: '#7566b7',
    500: '#2b2c97',
    950: '#000000',
  },
}
SCSS
$custom: #2b2c97;
$custom-light: #7566b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2c97",
  "rgb": {
    "r": 43,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 239.444,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37193,
    "c": 0.16922,
    "h": 274.1
  },
  "luminance": 0.04549
}

Semantic roles & 50–950 ramp

primary
#2B2C97
secondary
#BBBA63
accent
#DE49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2B2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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