#2B1F7E#2B1F7E

#2B1F7E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.151 H 279.6°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2B1F7E
RGBrgb(43, 31, 126)
HSLhsl(248, 61%, 31%)
HSVhsv(248, 75%, 49%)
CMYKcmyk(65.9%, 75.4%, 0%, 50.6%)
CIE-LABlab(20.04, 35.08, -51.62)
CIE-LCHlch(20.04, 62.41, 304.20°)
OKLaboklab(32.59% 0.0253 -0.149)
OKLCHoklch(32.59% 0.151 279.6)
XYZxyz(5.2509, 2.9995, 20.0369)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F7E #727E1F
analogous
#1F427E #2B1F7E #5A1F7E
triadic
#2B1F7E #7E2B1F #1F7E2B
tetradic
#2B1F7E #7E1F42 #727E1F #1F7E5A
square
#2B1F7E #7E1F42 #727E1F #1F7E5A
split-complementary
#2B1F7E #7E5A1F #427E1F
monochromatic
#09071C #1A134D #2B1F7E #3C2BAF #5846D1

Accessibility & contrast

On white

13.13
#2B1F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2B1F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F7E
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F7E#FFFFFF#000000##FFFFFF
##2B1F7E1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1f7e;
/* rgb */ color: rgb(43, 31, 126);
/* oklch */ color: oklch(32.6% 0.151 279.6);
Tailwind
colors: {
  custom: {
    50: '#705ca4',
    500: '#2b1f7e',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f7e;
$custom-light: #705ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f7e",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 247.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32594,
    "c": 0.15109,
    "h": 279.6
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#2B1F7E
secondary
#A4B148
accent
#E444CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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