#2B2C98#2B2C98

#2B2C98 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.171 H 274.0°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#2B2C98
RGBrgb(43, 44, 152)
HSLhsl(239, 56%, 38%)
HSVhsv(239, 72%, 60%)
CMYKcmyk(71.7%, 71.1%, 0%, 40.4%)
CIE-LABlab(25.51, 36.15, -58.85)
CIE-LCHlch(25.51, 69.06, 301.56°)
OKLaboklab(37.29% 0.0118 -0.1701)
OKLCHoklch(37.29% 0.171 274)
XYZxyz(7.5626, 4.5812, 30.1854)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2C98 #98972B
analogous
#2B6298 #2B2C98 #612B98
triadic
#2B2C98 #982B2C #2C982B
tetradic
#2B2C98 #982B62 #98972B #2B9861
square
#2B2C98 #982B62 #98972B #2B9861
split-complementary
#2B2C98 #98612B #62982B
monochromatic
#101039 #1E1E68 #2B2C98 #393AC7 #696AD5

Accessibility & contrast

On white

10.96
#2B2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2B2C98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2C98
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2C98#FFFFFF#000000##FFFFFF
##2B2C981.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b2c98;
/* rgb */ color: rgb(43, 44, 152);
/* oklch */ color: oklch(37.3% 0.171 274.0);
Tailwind
colors: {
  custom: {
    50: '#7566b7',
    500: '#2b2c98',
    950: '#000000',
  },
}
SCSS
$custom: #2b2c98;
$custom-light: #7566b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2c98",
  "rgb": {
    "r": 43,
    "g": 44,
    "b": 152
  },
  "hsl": {
    "h": 239.45,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37294,
    "c": 0.17053,
    "h": 274
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B2C98

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

Preview Lab → · Contrast checker → · Palette generator →

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