#2B1EA8#2B1EA8

#2B1EA8 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.1% C 0.204 H 274.3°. Best body text is #FFFFFF at 11.33:1 contrast (WCAG AA passes).

Color values

HEX#2B1EA8
RGBrgb(43, 30, 168)
HSLhsl(246, 70%, 39%)
HSVhsv(246, 82%, 66%)
CMYKcmyk(74.4%, 82.1%, 0%, 34.1%)
CIE-LABlab(24.54, 49.08, -70.19)
CIE-LCHlch(24.54, 85.65, 304.97°)
OKLaboklab(37.12% 0.0151 -0.203)
OKLCHoklch(37.12% 0.204 274.3)
XYZxyz(8.5261, 4.2684, 37.4127)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1EA8 #9BA81E
analogous
#1E56A8 #2B1EA8 #701EA8
triadic
#2B1EA8 #A82B1E #1EA82B
tetradic
#2B1EA8 #A81E56 #9BA81E #1EA870
square
#2B1EA8 #A81E56 #9BA81E #1EA870
split-complementary
#2B1EA8 #A8701E #56A81E
monochromatic
#100B40 #1E1574 #2B1EA8 #3B2AD9 #6B5EE2

Accessibility & contrast

On white

11.33
#2B1EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2B1EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1EA8
11.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1EA8#FFFFFF#000000##FFFFFF
##2B1EA81.0011.331.8511.33
#FFFFFF11.331.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2b1ea8;
/* rgb */ color: rgb(43, 30, 168);
/* oklch */ color: oklch(37.1% 0.204 274.3);
Tailwind
colors: {
  custom: {
    50: '#7a5ec3',
    500: '#2b1ea8',
    950: '#000000',
  },
}
SCSS
$custom: #2b1ea8;
$custom-light: #7a5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1ea8",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 245.652,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37124,
    "c": 0.20354,
    "h": 274.3
  },
  "luminance": 0.04269
}

Semantic roles & 50–950 ramp

primary
#2B1EA8
secondary
#BCC75B
accent
#ED3BDC
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B1EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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