#2F1D8E#2F1D8E

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

Color values

HEX#2F1D8E
RGBrgb(47, 29, 142)
HSLhsl(250, 66%, 34%)
HSVhsv(250, 80%, 56%)
CMYKcmyk(66.9%, 79.6%, 0%, 44.3%)
CIE-LABlab(21.71, 41.85, -58.91)
CIE-LCHlch(21.71, 72.27, 305.39°)
OKLaboklab(34.37% 0.0284 -0.1701)
OKLCHoklch(34.37% 0.172 279.5)
XYZxyz(6.4926, 3.4355, 25.9069)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D8E #7C8E1D
analogous
#1D438E #2F1D8E #671D8E
triadic
#2F1D8E #8E2F1D #1D8E2F
tetradic
#2F1D8E #8E1D43 #7C8E1D #1D8E67
square
#2F1D8E #8E1D43 #7C8E1D #1D8E67
split-complementary
#2F1D8E #8E671D #438E1D
monochromatic
#0D0828 #1E135B #2F1D8E #4027C1 #624BDA

Accessibility & contrast

On white

12.45
#2F1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2F1D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D8E
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D8E#FFFFFF#000000##FFFFFF
##2F1D8E1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1d8e;
/* rgb */ color: rgb(47, 29, 142);
/* oklch */ color: oklch(34.4% 0.172 279.5);
Tailwind
colors: {
  custom: {
    50: '#765cb0',
    500: '#2f1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d8e;
$custom-light: #765cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d8e",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 249.558,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34366,
    "c": 0.17247,
    "h": 279.5
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#2F1D8E
secondary
#AABD4A
accent
#E93FCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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