#2F1F8E#2F1F8E

#2F1F8E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.171 H 279.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2F1F8E
RGBrgb(47, 31, 142)
HSLhsl(249, 64%, 34%)
HSVhsv(249, 78%, 56%)
CMYKcmyk(66.9%, 78.2%, 0%, 44.3%)
CIE-LABlab(22.08, 40.80, -58.31)
CIE-LCHlch(22.08, 71.16, 304.98°)
OKLaboklab(34.62% 0.0273 -0.1684)
OKLCHoklch(34.62% 0.171 279.2)
XYZxyz(6.5432, 3.5368, 25.9238)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F8E #7E8E1F
analogous
#1F478E #2F1F8E #671F8E
triadic
#2F1F8E #8E2F1F #1F8E2F
tetradic
#2F1F8E #8E1F47 #7E8E1F #1F8E67
square
#2F1F8E #8E1F47 #7E8E1F #1F8E67
split-complementary
#2F1F8E #8E671F #478E1F
monochromatic
#0E092A #1E145C #2F1F8E #402AC0 #634FD9

Accessibility & contrast

On white

12.30
#2F1F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F1F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F8E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F8E#FFFFFF#000000##FFFFFF
##2F1F8E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f1f8e;
/* rgb */ color: rgb(47, 31, 142);
/* oklch */ color: oklch(34.6% 0.171 279.2);
Tailwind
colors: {
  custom: {
    50: '#765db0',
    500: '#2f1f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f8e;
$custom-light: #765db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f8e",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 248.649,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34623,
    "c": 0.17055,
    "h": 279.2
  },
  "luminance": 0.03537
}

Semantic roles & 50–950 ramp

primary
#2F1F8E
secondary
#ACBB4D
accent
#E741CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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