#2B1995#2B1995

#2B1995 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.185 H 276.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2B1995
RGBrgb(43, 25, 149)
HSLhsl(249, 71%, 34%)
HSVhsv(249, 83%, 58%)
CMYKcmyk(71.1%, 83.2%, 0%, 41.6%)
CIE-LABlab(21.50, 45.60, -63.62)
CIE-LCHlch(21.50, 78.27, 305.63°)
OKLaboklab(34.37% 0.0224 -0.1838)
OKLCHoklch(34.37% 0.185 276.9)
XYZxyz(6.7669, 3.3782, 28.7234)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1995 #839519
analogous
#194595 #2B1995 #691995
triadic
#2B1995 #952B19 #19952B
tetradic
#2B1995 #951945 #839519 #199569
square
#2B1995 #951945 #839519 #199569
split-complementary
#2B1995 #956919 #459519
monochromatic
#0D072C #1C1061 #2B1995 #3A22C9 #5E48E0

Accessibility & contrast

On white

12.53
#2B1995 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2B1995 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1995
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1995#FFFFFF#000000##FFFFFF
##2B19951.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003998
Deuteranopia (green-blind)
#002E93
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2b1995;
/* rgb */ color: rgb(43, 25, 149);
/* oklch */ color: oklch(34.4% 0.185 276.9);
Tailwind
colors: {
  custom: {
    50: '#765ab5',
    500: '#2b1995',
    950: '#000000',
  },
}
SCSS
$custom: #2b1995;
$custom-light: #765ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1995",
  "rgb": {
    "r": 43,
    "g": 25,
    "b": 149
  },
  "hsl": {
    "h": 248.71,
    "s": 71.264,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3437,
    "c": 0.18519,
    "h": 276.9
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#2B1995
secondary
#B0C248
accent
#EE3AD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2B1995

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

Preview Lab → · Contrast checker → · Palette generator →

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