#2F1A9E#2F1A9E

#2F1A9E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.8% C 0.194 H 277.4°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#2F1A9E
RGBrgb(47, 26, 158)
HSLhsl(250, 72%, 36%)
HSVhsv(250, 84%, 62%)
CMYKcmyk(70.3%, 83.5%, 0%, 38%)
CIE-LABlab(23.04, 48.19, -66.59)
CIE-LCHlch(23.04, 82.20, 305.89°)
OKLaboklab(35.82% 0.0251 -0.1924)
OKLCHoklch(35.82% 0.194 277.4)
XYZxyz(7.7112, 3.8111, 32.6703)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A9E #899E1A
analogous
#1A479E #2F1A9E #711A9E
triadic
#2F1A9E #9E2F1A #1A9E2F
tetradic
#2F1A9E #9E1A47 #899E1A #1A9E71
square
#2F1A9E #9E1A47 #899E1A #1A9E71
split-complementary
#2F1A9E #9E711A #479E1A
monochromatic
#100935 #1F1169 #2F1A9E #3F23D3 #6750E2

Accessibility & contrast

On white

11.92
#2F1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1A9E
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A9E#FFFFFF#000000##FFFFFF
##2F1A9E1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f1a9e;
/* rgb */ color: rgb(47, 26, 158);
/* oklch */ color: oklch(35.8% 0.194 277.4);
Tailwind
colors: {
  custom: {
    50: '#795cbc',
    500: '#2f1a9e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a9e;
$custom-light: #795cbc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a9e",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 249.545,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35821,
    "c": 0.19401,
    "h": 277.4
  },
  "luminance": 0.03812
}

Semantic roles & 50–950 ramp

primary
#2F1A9E
secondary
#B2C54F
accent
#EE39D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F1A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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