#2B1F77#2B1F77

#2B1F77 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.142 H 280.9°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2B1F77
RGBrgb(43, 31, 119)
HSLhsl(248, 59%, 29%)
HSVhsv(248, 74%, 47%)
CMYKcmyk(63.9%, 73.9%, 0%, 53.3%)
CIE-LABlab(19.33, 32.73, -48.32)
CIE-LCHlch(19.33, 58.36, 304.11°)
OKLaboklab(31.87% 0.0268 -0.1393)
OKLCHoklch(31.87% 0.142 280.9)
XYZxyz(4.8150, 2.8251, 17.7408)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F77 #6B771F
analogous
#1F3F77 #2B1F77 #571F77
triadic
#2B1F77 #772B1F #1F772B
tetradic
#2B1F77 #771F3F #6B771F #1F7757
square
#2B1F77 #771F3F #6B771F #1F7757
split-complementary
#2B1F77 #77571F #3F771F
monochromatic
#090618 #191246 #2B1F77 #3D2CA8 #5643CE

Accessibility & contrast

On white

13.42
#2B1F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B1F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F77
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F77#FFFFFF#000000##FFFFFF
##2B1F771.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1f77;
/* rgb */ color: rgb(43, 31, 119);
/* oklch */ color: oklch(31.9% 0.142 280.9);
Tailwind
colors: {
  custom: {
    50: '#6f5c9f',
    500: '#2b1f77',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f77;
$custom-light: #6f5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f77",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 248.182,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31871,
    "c": 0.14188,
    "h": 280.9
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#2B1F77
secondary
#9DAB47
accent
#E246CD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #2B1F77

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

Preview Lab → · Contrast checker → · Palette generator →

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