#2F18A1#2F18A1

#2F18A1 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 36.0% C 0.199 H 277.2°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#2F18A1
RGBrgb(47, 24, 161)
HSLhsl(250, 74%, 36%)
HSVhsv(250, 85%, 63%)
CMYKcmyk(70.8%, 85.1%, 0%, 36.9%)
CIE-LABlab(23.10, 49.94, -68.31)
CIE-LCHlch(23.10, 84.62, 306.17°)
OKLaboklab(35.97% 0.0249 -0.1973)
OKLCHoklch(35.97% 0.199 277.2)
XYZxyz(7.9299, 3.8301, 34.0327)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F18A1 #8AA118
analogous
#1846A1 #2F18A1 #7418A1
triadic
#2F18A1 #A12F18 #18A12F
tetradic
#2F18A1 #A11846 #8AA118 #18A174
square
#2F18A1 #A11846 #8AA118 #18A174
split-complementary
#2F18A1 #A17418 #46A118
monochromatic
#100836 #1F106C #2F18A1 #3F20D6 #684FE5

Accessibility & contrast

On white

11.89
#2F18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2F18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F18A1
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F18A1#FFFFFF#000000##FFFFFF
##2F18A11.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA5
Deuteranopia (green-blind)
#00319F
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f18a1;
/* rgb */ color: rgb(47, 24, 161);
/* oklch */ color: oklch(36.0% 0.199 277.2);
Tailwind
colors: {
  custom: {
    50: '#7a5bbe',
    500: '#2f18a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f18a1;
$custom-light: #7a5bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f18a1",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 250.073,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.19891,
    "h": 277.2
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

primary
#2F18A1
secondary
#B3C74E
accent
#F137D2
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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