#2F18A0#2F18A0

#2F18A0 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.198 H 277.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#2F18A0
RGBrgb(47, 24, 160)
HSLhsl(250, 74%, 36%)
HSVhsv(250, 85%, 63%)
CMYKcmyk(70.6%, 85%, 0%, 37.3%)
CIE-LABlab(22.98, 49.65, -67.90)
CIE-LCHlch(22.98, 84.12, 306.17°)
OKLaboklab(35.85% 0.0252 -0.1962)
OKLCHoklch(35.85% 0.198 277.3)
XYZxyz(7.8420, 3.7950, 33.5701)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F18A0 #89A018
analogous
#1845A0 #2F18A0 #7318A0
triadic
#2F18A0 #A02F18 #18A02F
tetradic
#2F18A0 #A01845 #89A018 #18A073
square
#2F18A0 #A01845 #89A018 #18A073
split-complementary
#2F18A0 #A07318 #45A018
monochromatic
#100836 #1F106B #2F18A0 #3F20D5 #674EE4

Accessibility & contrast

On white

11.94
#2F18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2F18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F18A0
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F18A0#FFFFFF#000000##FFFFFF
##2F18A01.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA4
Deuteranopia (green-blind)
#00319E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2f18a0;
/* rgb */ color: rgb(47, 24, 160);
/* oklch */ color: oklch(35.9% 0.198 277.3);
Tailwind
colors: {
  custom: {
    50: '#7a5bbd',
    500: '#2f18a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f18a0;
$custom-light: #7a5bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f18a0",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 250.147,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35852,
    "c": 0.19777,
    "h": 277.3
  },
  "luminance": 0.03796
}

Semantic roles & 50–950 ramp

primary
#2F18A0
secondary
#B2C64D
accent
#F137D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2F18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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