#2F1875#2F1875

#2F1875 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.147 H 285.4°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2F1875
RGBrgb(47, 24, 117)
HSLhsl(255, 66%, 28%)
HSVhsv(255, 79%, 46%)
CMYKcmyk(59.8%, 79.5%, 0%, 54.1%)
CIE-LABlab(18.11, 36.63, -49.04)
CIE-LCHlch(18.11, 61.21, 306.76°)
OKLaboklab(31.04% 0.039 -0.1412)
OKLCHoklch(31.04% 0.147 285.4)
XYZxyz(4.7088, 2.5417, 17.0686)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1875 #5E7518
analogous
#182F75 #2F1875 #5E1875
triadic
#2F1875 #752F18 #18752F
tetradic
#2F1875 #75182F #5E7518 #18755E
square
#2F1875 #75182F #5E7518 #18755E
split-complementary
#2F1875 #755E18 #2F7518
monochromatic
#0A0519 #1B0E42 #2F1875 #4322A8 #5B32D5

Accessibility & contrast

On white

13.92
#2F1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F1875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1875
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1875#FFFFFF#000000##FFFFFF
##2F18751.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#0A3346
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f1875;
/* rgb */ color: rgb(47, 24, 117);
/* oklch */ color: oklch(31.0% 0.147 285.4);
Tailwind
colors: {
  custom: {
    50: '#71589e',
    500: '#2f1875',
    950: '#000000',
  },
}
SCSS
$custom: #2f1875;
$custom-light: #71589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1875",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 254.839,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3104,
    "c": 0.14651,
    "h": 285.4
  },
  "luminance": 0.02542
}

Semantic roles & 50–950 ramp

primary
#2F1875
secondary
#90AA3F
accent
#E93FBF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F1875

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

Preview Lab → · Contrast checker → · Palette generator →

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