#2B1E7F#2B1E7F

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

Color values

HEX#2B1E7F
RGBrgb(43, 30, 127)
HSLhsl(248, 62%, 31%)
HSVhsv(248, 76%, 50%)
CMYKcmyk(66.1%, 76.4%, 0%, 50.2%)
CIE-LABlab(19.94, 35.99, -52.42)
CIE-LCHlch(19.94, 63.59, 304.47°)
OKLaboklab(32.55% 0.0258 -0.1513)
OKLCHoklch(32.55% 0.153 279.7)
XYZxyz(5.2901, 2.9740, 20.3698)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1E7F #727F1E
analogous
#1E417F #2B1E7F #5B1E7F
triadic
#2B1E7F #7F2B1E #1E7F2B
tetradic
#2B1E7F #7F1E41 #727F1E #1E7F5B
square
#2B1E7F #7F1E41 #727F1E #1E7F5B
split-complementary
#2B1E7F #7F5B1E #417F1E
monochromatic
#09071C #1A124D #2B1E7F #3C2AB1 #5844D3

Accessibility & contrast

On white

13.17
#2B1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2B1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1E7F
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1E7F#FFFFFF#000000##FFFFFF
##2B1E7F1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1e7f;
/* rgb */ color: rgb(43, 30, 127);
/* oklch */ color: oklch(32.6% 0.153 279.7);
Tailwind
colors: {
  custom: {
    50: '#705ca5',
    500: '#2b1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #2b1e7f;
$custom-light: #705ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1e7f",
  "rgb": {
    "r": 43,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 248.041,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32553,
    "c": 0.15348,
    "h": 279.7
  },
  "luminance": 0.02974
}

Semantic roles & 50–950 ramp

primary
#2B1E7F
secondary
#A4B247
accent
#E543CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2B1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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