#2F1A9D#2F1A9D

#2F1A9D is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.193 H 277.6°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#2F1A9D
RGBrgb(47, 26, 157)
HSLhsl(250, 72%, 36%)
HSVhsv(250, 83%, 62%)
CMYKcmyk(70.1%, 83.4%, 0%, 38.4%)
CIE-LABlab(22.92, 47.89, -66.17)
CIE-LCHlch(22.92, 81.69, 305.90°)
OKLaboklab(35.71% 0.0254 -0.1912)
OKLCHoklch(35.71% 0.193 277.6)
XYZxyz(7.6255, 3.7768, 32.2189)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A9D #889D1A
analogous
#1A469D #2F1A9D #701A9D
triadic
#2F1A9D #9D2F1A #1A9D2F
tetradic
#2F1A9D #9D1A46 #889D1A #1A9D70
square
#2F1A9D #9D1A46 #889D1A #1A9D70
split-complementary
#2F1A9D #9D701A #469D1A
monochromatic
#100934 #1F1168 #2F1A9D #3F23D2 #674FE2

Accessibility & contrast

On white

11.96
#2F1A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F1A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A9D
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A9D#FFFFFF#000000##FFFFFF
##2F1A9D1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA1
Deuteranopia (green-blind)
#00319B
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1a9d;
/* rgb */ color: rgb(47, 26, 157);
/* oklch */ color: oklch(35.7% 0.193 277.6);
Tailwind
colors: {
  custom: {
    50: '#795cbb',
    500: '#2f1a9d',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a9d;
$custom-light: #795cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a9d",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 249.618,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35706,
    "c": 0.19285,
    "h": 277.6
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#2F1A9D
secondary
#B1C44E
accent
#EE39D1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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