#2B1F90#2B1F90

#2B1F90 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.174 H 276.9°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2B1F90
RGBrgb(43, 31, 144)
HSLhsl(246, 65%, 34%)
HSVhsv(246, 78%, 56%)
CMYKcmyk(70.1%, 78.5%, 0%, 43.5%)
CIE-LABlab(21.97, 41.01, -59.74)
CIE-LCHlch(21.97, 72.46, 304.47°)
OKLaboklab(34.53% 0.021 -0.1726)
OKLCHoklch(34.53% 0.174 276.9)
XYZxyz(6.5186, 3.5066, 26.7135)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F90 #84901F
analogous
#1F4C90 #2B1F90 #641F90
triadic
#2B1F90 #902B1F #1F902B
tetradic
#2B1F90 #901F4C #84901F #1F9064
square
#2B1F90 #901F4C #84901F #1F9064
split-complementary
#2B1F90 #90641F #4C901F
monochromatic
#0D092B #1C145E #2B1F90 #3A2AC2 #5F50D9

Accessibility & contrast

On white

12.34
#2B1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2B1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F90
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F90#FFFFFF#000000##FFFFFF
##2B1F901.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2b1f90;
/* rgb */ color: rgb(43, 31, 144);
/* oklch */ color: oklch(34.5% 0.174 276.9);
Tailwind
colors: {
  custom: {
    50: '#745db2',
    500: '#2b1f90',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f90;
$custom-light: #745db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f90",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 246.372,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34529,
    "c": 0.17392,
    "h": 276.9
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#2B1F90
secondary
#B1BC4E
accent
#E840D6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2B1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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