#2B2B98#2B2B98

#2B2B98 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.172 H 274.2°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2B2B98
RGBrgb(43, 43, 152)
HSLhsl(240, 56%, 38%)
HSVhsv(240, 72%, 60%)
CMYKcmyk(71.7%, 71.7%, 0%, 40.4%)
CIE-LABlab(25.28, 36.76, -59.21)
CIE-LCHlch(25.28, 69.70, 301.83°)
OKLaboklab(37.13% 0.0124 -0.1712)
OKLCHoklch(37.13% 0.172 274.2)
XYZxyz(7.5258, 4.5076, 30.1731)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2B98 #98982B
analogous
#2B6198 #2B2B98 #612B98
triadic
#2B2B98 #982B2B #2B982B
tetradic
#2B2B98 #982B61 #98982B #2B9861
square
#2B2B98 #982B61 #98982B #2B9861
split-complementary
#2B2B98 #98612B #61982B
monochromatic
#101039 #1E1E68 #2B2B98 #3939C7 #6969D5

Accessibility & contrast

On white

11.04
#2B2B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2B2B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2B98
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2B98#FFFFFF#000000##FFFFFF
##2B2B981.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b2b98;
/* rgb */ color: rgb(43, 43, 152);
/* oklch */ color: oklch(37.1% 0.172 274.2);
Tailwind
colors: {
  custom: {
    50: '#7565b7',
    500: '#2b2b98',
    950: '#000000',
  },
}
SCSS
$custom: #2b2b98;
$custom-light: #7565b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2b98",
  "rgb": {
    "r": 43,
    "g": 43,
    "b": 152
  },
  "hsl": {
    "h": 240,
    "s": 55.897,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37133,
    "c": 0.17164,
    "h": 274.2
  },
  "luminance": 0.04508
}

Semantic roles & 50–950 ramp

primary
#2B2B98
secondary
#BBBB64
accent
#DF49DF
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2B2B98

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

Preview Lab → · Contrast checker → · Palette generator →

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