#2B1D98#2B1D98

#2B1D98 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.185 H 276.1°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#2B1D98
RGBrgb(43, 29, 152)
HSLhsl(247, 68%, 35%)
HSVhsv(247, 81%, 60%)
CMYKcmyk(71.7%, 80.9%, 0%, 40.4%)
CIE-LABlab(22.51, 44.60, -63.79)
CIE-LCHlch(22.51, 77.84, 304.96°)
OKLaboklab(35.17% 0.0198 -0.1844)
OKLCHoklch(35.17% 0.185 276.1)
XYZxyz(7.1013, 3.6587, 30.0316)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1D98 #8A981D
analogous
#1D4D98 #2B1D98 #681D98
triadic
#2B1D98 #982B1D #1D982B
tetradic
#2B1D98 #981D4D #8A981D #1D9868
square
#2B1D98 #981D4D #8A981D #1D9868
split-complementary
#2B1D98 #98681D #4D981D
monochromatic
#0E0931 #1C1365 #2B1D98 #3A27CB #6152DE

Accessibility & contrast

On white

12.13
#2B1D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2B1D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1D98
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1D98#FFFFFF#000000##FFFFFF
##2B1D981.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003096
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b1d98;
/* rgb */ color: rgb(43, 29, 152);
/* oklch */ color: oklch(35.2% 0.185 276.1);
Tailwind
colors: {
  custom: {
    50: '#765db8',
    500: '#2b1d98',
    950: '#000000',
  },
}
SCSS
$custom: #2b1d98;
$custom-light: #765db8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1d98",
  "rgb": {
    "r": 43,
    "g": 29,
    "b": 152
  },
  "hsl": {
    "h": 246.829,
    "s": 67.956,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35172,
    "c": 0.18546,
    "h": 276.1
  },
  "luminance": 0.03659
}

Semantic roles & 50–950 ramp

primary
#2B1D98
secondary
#B4C150
accent
#EB3DD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1D98

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

Preview Lab → · Contrast checker → · Palette generator →

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