#2F1F8C#2F1F8C

#2F1F8C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.168 H 279.5°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#2F1F8C
RGBrgb(47, 31, 140)
HSLhsl(249, 64%, 34%)
HSVhsv(249, 78%, 55%)
CMYKcmyk(66.4%, 77.9%, 0%, 45.1%)
CIE-LABlab(21.86, 40.16, -57.42)
CIE-LCHlch(21.86, 70.07, 304.97°)
OKLaboklab(34.41% 0.0278 -0.1658)
OKLCHoklch(34.41% 0.168 279.5)
XYZxyz(6.3944, 3.4772, 25.1401)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1F8C #7C8C1F
analogous
#1F458C #2F1F8C #651F8C
triadic
#2F1F8C #8C2F1F #1F8C2F
tetradic
#2F1F8C #8C1F45 #7C8C1F #1F8C65
square
#2F1F8C #8C1F45 #7C8C1F #1F8C65
split-complementary
#2F1F8C #8C651F #458C1F
monochromatic
#0D0928 #1E145A #2F1F8C #402ABE #624ED8

Accessibility & contrast

On white

12.38
#2F1F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F1F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1F8C
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1F8C#FFFFFF#000000##FFFFFF
##2F1F8C1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1f8c;
/* rgb */ color: rgb(47, 31, 140);
/* oklch */ color: oklch(34.4% 0.168 279.5);
Tailwind
colors: {
  custom: {
    50: '#755daf',
    500: '#2f1f8c',
    950: '#000000',
  },
}
SCSS
$custom: #2f1f8c;
$custom-light: #755daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1f8c",
  "rgb": {
    "r": 47,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 248.807,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34408,
    "c": 0.16808,
    "h": 279.5
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#2F1F8C
secondary
#AABB4C
accent
#E741CE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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