#2F125A#2F125A

#2F125A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.5% C 0.120 H 295.8°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#2F125A
RGBrgb(47, 18, 90)
HSLhsl(264, 67%, 21%)
HSVhsv(264, 80%, 35%)
CMYKcmyk(47.8%, 80%, 0%, 64.7%)
CIE-LABlab(14.26, 31.58, -37.59)
CIE-LCHlch(14.26, 49.10, 310.04°)
OKLaboklab(27.5% 0.0521 -0.1076)
OKLCHoklch(27.5% 0.12 295.8)
XYZxyz(3.2336, 1.7751, 9.8431)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F125A #3D5A12
analogous
#12195A #2F125A #53125A
triadic
#2F125A #5A2F12 #125A2F
tetradic
#2F125A #5A1219 #3D5A12 #125A53
square
#2F125A #5A1219 #3D5A12 #125A53
split-complementary
#2F125A #5A5312 #195A12
monochromatic
#0D051A #140827 #2F125A #4A1C8D #6426C0

Accessibility & contrast

On white

15.50
#2F125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2F125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F125A
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F125A#FFFFFF#000000##FFFFFF
##2F125A1.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002359
Tritanopia (blue-blind)
#232535
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2f125a;
/* rgb */ color: rgb(47, 18, 90);
/* oklch */ color: oklch(27.5% 0.120 295.8);
Tailwind
colors: {
  custom: {
    50: '#6d5389',
    500: '#2f125a',
    950: '#000000',
  },
}
SCSS
$custom: #2f125a;
$custom-light: #6d5389;
$custom-dark: #000000;
JSON
{
  "hex": "#2f125a",
  "rgb": {
    "r": 47,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 264.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27504,
    "c": 0.11957,
    "h": 295.8
  },
  "luminance": 0.01775
}

Semantic roles & 50–950 ramp

primary
#2F125A
secondary
#6D9335
accent
#EA3EA5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2F125A

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

Preview Lab → · Contrast checker → · Palette generator →

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