#2A1B8F#2A1B8F

#2A1B8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.8% C 0.177 H 277.1°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#2A1B8F
RGBrgb(42, 27, 143)
HSLhsl(248, 68%, 33%)
HSVhsv(248, 81%, 56%)
CMYKcmyk(70.6%, 81.1%, 0%, 43.9%)
CIE-LABlab(21.05, 42.68, -60.64)
CIE-LCHlch(21.05, 74.15, 305.14°)
OKLaboklab(33.84% 0.0218 -0.1752)
OKLCHoklch(33.84% 0.177 277.1)
XYZxyz(6.3031, 3.2587, 26.2781)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1B8F #808F1B
analogous
#1B468F #2A1B8F #641B8F
triadic
#2A1B8F #8F2A1B #1B8F2A
tetradic
#2A1B8F #8F1B46 #808F1B #1B8F64
square
#2A1B8F #8F1B46 #808F1B #1B8F64
split-complementary
#2A1B8F #8F641B #468F1B
monochromatic
#0C0828 #1B115C #2A1B8F #3925C2 #5B48DC

Accessibility & contrast

On white

12.71
#2A1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2A1B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1B8F
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1B8F#FFFFFF#000000##FFFFFF
##2A1B8F1.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2a1b8f;
/* rgb */ color: rgb(42, 27, 143);
/* oklch */ color: oklch(33.8% 0.177 277.1);
Tailwind
colors: {
  custom: {
    50: '#745bb1',
    500: '#2a1b8f',
    950: '#000000',
  },
}
SCSS
$custom: #2a1b8f;
$custom-light: #745bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1b8f",
  "rgb": {
    "r": 42,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 247.759,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33835,
    "c": 0.17658,
    "h": 277.1
  },
  "luminance": 0.03259
}

Semantic roles & 50–950 ramp

primary
#2A1B8F
secondary
#AFBE48
accent
#EB3DD5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2A1B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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