#2F146E#2F146E

#2F146E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.142 H 288.1°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#2F146E
RGBrgb(47, 20, 110)
HSLhsl(258, 69%, 25%)
HSVhsv(258, 82%, 43%)
CMYKcmyk(57.3%, 81.8%, 0%, 56.9%)
CIE-LABlab(16.65, 36.53, -46.90)
CIE-LCHlch(16.65, 59.45, 307.92°)
OKLaboklab(29.8% 0.0442 -0.1349)
OKLCHoklch(29.8% 0.142 288.1)
XYZxyz(4.2361, 2.2302, 14.9561)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F146E #536E14
analogous
#14266E #2F146E #5C146E
triadic
#2F146E #6E2F14 #146E2F
tetradic
#2F146E #6E1426 #536E14 #146E5C
square
#2F146E #6E1426 #536E14 #146E5C
split-complementary
#2F146E #6E5C14 #266E14
monochromatic
#0B051A #190B3A #2F146E #451DA2 #5B27D6

Accessibility & contrast

On white

14.52
#2F146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2F146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F146E
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F146E#FFFFFF#000000##FFFFFF
##2F146E1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B71
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#152E41
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2f146e;
/* rgb */ color: rgb(47, 20, 110);
/* oklch */ color: oklch(29.8% 0.142 288.1);
Tailwind
colors: {
  custom: {
    50: '#705599',
    500: '#2f146e',
    950: '#000000',
  },
}
SCSS
$custom: #2f146e;
$custom-light: #705599;
$custom-dark: #000000;
JSON
{
  "hex": "#2f146e",
  "rgb": {
    "r": 47,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 258,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.298,
    "c": 0.14199,
    "h": 288.1
  },
  "luminance": 0.0223
}

Semantic roles & 50–950 ramp

primary
#2F146E
secondary
#84A539
accent
#EC3CB7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2F146E

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

Preview Lab → · Contrast checker → · Palette generator →

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