#2F1F99#2F1F99

#2F1F99 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.184 H 277.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2F1F99
RGBrgb(47, 31, 153)
HSLhsl(248, 66%, 36%)
HSVhsv(248, 80%, 60%)
CMYKcmyk(69.3%, 79.7%, 0%, 40%)
CIE-LABlab(23.28, 44.28, -63.12)
CIE-LCHlch(23.28, 77.10, 305.05°)
OKLaboklab(35.82% 0.0243 -0.1824)
OKLCHoklch(35.82% 0.184 277.6)
XYZxyz(7.4102, 3.8836, 30.4899)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F99 #89991F
analogous
#1F4C99 #2F1F99 #6C1F99
triadic
#2F1F99 #992F1F #1F992F
tetradic
#2F1F99 #991F4C #89991F #1F996C
square
#2F1F99 #991F4C #89991F #1F996C
split-complementary
#2F1F99 #996C1F #4C991F
monochromatic
#100A33 #1F1566 #2F1F99 #3F29CC #6756DD

Accessibility & contrast

On white

11.82
#2F1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2F1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F99
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F99#FFFFFF#000000##FFFFFF
##2F1F991.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1f99;
/* rgb */ color: rgb(47, 31, 153);
/* oklch */ color: oklch(35.8% 0.184 277.6);
Tailwind
colors: {
  custom: {
    50: '#785eb8',
    500: '#2f1f99',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f99;
$custom-light: #785eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f99",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 247.869,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35824,
    "c": 0.18398,
    "h": 277.6
  },
  "luminance": 0.03884
}

Semantic roles & 50–950 ramp

primary
#2F1F99
secondary
#B2C054
accent
#E93FD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2F1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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