#2B1F73#2B1F73

#2B1F73 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.5% C 0.137 H 281.6°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2B1F73
RGBrgb(43, 31, 115)
HSLhsl(249, 58%, 29%)
HSVhsv(249, 73%, 45%)
CMYKcmyk(62.6%, 73%, 0%, 54.9%)
CIE-LABlab(18.93, 31.37, -46.40)
CIE-LCHlch(18.93, 56.01, 304.06°)
OKLaboklab(31.47% 0.0276 -0.1337)
OKLCHoklch(31.47% 0.137 281.6)
XYZxyz(4.5798, 2.7311, 16.5021)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F73 #67731F
analogous
#1F3D73 #2B1F73 #551F73
triadic
#2B1F73 #732B1F #1F732B
tetradic
#2B1F73 #731F3D #67731F #1F7355
square
#2B1F73 #731F3D #67731F #1F7355
split-complementary
#2B1F73 #73551F #3D731F
monochromatic
#090618 #191243 #2B1F73 #3D2CA3 #5541CC

Accessibility & contrast

On white

13.58
#2B1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2B1F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F73
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F73#FFFFFF#000000##FFFFFF
##2B1F731.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002B71
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1f73;
/* rgb */ color: rgb(43, 31, 115);
/* oklch */ color: oklch(31.5% 0.137 281.6);
Tailwind
colors: {
  custom: {
    50: '#6e5c9c',
    500: '#2b1f73',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f73;
$custom-light: #6e5c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f73",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 248.571,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31466,
    "c": 0.13652,
    "h": 281.6
  },
  "luminance": 0.02731
}

Semantic roles & 50–950 ramp

primary
#2B1F73
secondary
#99A747
accent
#E147CB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2B1F73

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

Preview Lab → · Contrast checker → · Palette generator →

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