#2B1F9F#2B1F9F

#2B1F9F is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.192 H 275.1°. Best body text is #FFFFFF at 11.67:1 contrast (WCAG AA passes).

Color values

HEX#2B1F9F
RGBrgb(43, 31, 159)
HSLhsl(246, 67%, 37%)
HSVhsv(246, 81%, 62%)
CMYKcmyk(73%, 80.5%, 0%, 37.6%)
CIE-LABlab(23.66, 45.80, -66.18)
CIE-LCHlch(23.66, 80.48, 304.69°)
OKLaboklab(36.21% 0.0171 -0.1914)
OKLCHoklch(36.21% 0.192 275.1)
XYZxyz(7.7422, 3.9960, 33.1575)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1F9F #939F1F
analogous
#1F539F #2B1F9F #6B1F9F
triadic
#2B1F9F #9F2B1F #1F9F2B
tetradic
#2B1F9F #9F1F53 #939F1F #1F9F6B
square
#2B1F9F #9F1F53 #939F1F #1F9F6B
split-complementary
#2B1F9F #9F6B1F #539F1F
monochromatic
#0F0B39 #1D156C #2B1F9F #3929D2 #665ADF

Accessibility & contrast

On white

11.67
#2B1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2B1F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1F9F
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1F9F#FFFFFF#000000##FFFFFF
##2B1F9F1.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2b1f9f;
/* rgb */ color: rgb(43, 31, 159);
/* oklch */ color: oklch(36.2% 0.192 275.1);
Tailwind
colors: {
  custom: {
    50: '#785ebd',
    500: '#2b1f9f',
    950: '#000000',
  },
}
SCSS
$custom: #2b1f9f;
$custom-light: #785ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1f9f",
  "rgb": {
    "r": 43,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 245.625,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.36207,
    "c": 0.19213,
    "h": 275.1
  },
  "luminance": 0.03997
}

Semantic roles & 50–950 ramp

primary
#2B1F9F
secondary
#B9C357
accent
#EA3EDA
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2B1F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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