#2F185C#2F185C

#2F185C is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.114 H 293.3°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#2F185C
RGBrgb(47, 24, 92)
HSLhsl(260, 59%, 23%)
HSVhsv(260, 74%, 36%)
CMYKcmyk(48.9%, 73.9%, 0%, 63.9%)
CIE-LABlab(15.64, 28.83, -36.67)
CIE-LCHlch(15.64, 46.65, 308.18°)
OKLaboklab(28.55% 0.0452 -0.105)
OKLCHoklch(28.55% 0.114 293.3)
XYZxyz(3.4302, 2.0302, 10.3343)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F185C #455C18
analogous
#18235C #2F185C #51185C
triadic
#2F185C #5C2F18 #185C2F
tetradic
#2F185C #5C1823 #455C18 #185C51
square
#2F185C #5C1823 #455C18 #185C51
split-complementary
#2F185C #5C5118 #235C18
monochromatic
#0C0618 #160B2B #2F185C #48258D #6131BD

Accessibility & contrast

On white

14.94
#2F185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F185C
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F185C#FFFFFF#000000##FFFFFF
##2F185C1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00265B
Tritanopia (blue-blind)
#222938
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f185c;
/* rgb */ color: rgb(47, 24, 92);
/* oklch */ color: oklch(28.5% 0.114 293.3);
Tailwind
colors: {
  custom: {
    50: '#6c578b',
    500: '#2f185c',
    950: '#000000',
  },
}
SCSS
$custom: #2f185c;
$custom-light: #6c578b;
$custom-dark: #000000;
JSON
{
  "hex": "#2f185c",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 260.294,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28546,
    "c": 0.11431,
    "h": 293.3
  },
  "luminance": 0.0203
}

Semantic roles & 50–950 ramp

primary
#2F185C
secondary
#76933D
accent
#E246AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F185C

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

Preview Lab → · Contrast checker → · Palette generator →

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