#2F153E#2F153E

#2F153E is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.079 H 311.3°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#2F153E
RGBrgb(47, 21, 62)
HSLhsl(278, 49%, 16%)
HSVhsv(278, 66%, 24%)
CMYKcmyk(24.2%, 66.1%, 0%, 75.7%)
CIE-LABlab(12.53, 21.83, -21.07)
CIE-LCHlch(12.53, 30.34, 316.02°)
OKLaboklab(25.53% 0.052 -0.0591)
OKLCHoklch(25.53% 0.079 311.3)
XYZxyz(2.3098, 1.4885, 4.7221)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F153E #243E15
analogous
#1B153E #2F153E #3E1539
triadic
#2F153E #3E2F15 #153E2F
tetradic
#2F153E #3E1B15 #243E15 #15393E
square
#2F153E #3E1B15 #243E15 #15393E
split-complementary
#2F153E #393E15 #153E1B
monochromatic
#110817 #110817 #2F153E #52246C #743499

Accessibility & contrast

On white

16.18
#2F153E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2F153E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F153E
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F153E#FFFFFF#000000##FFFFFF
##2F153E1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081F3F
Deuteranopia (green-blind)
#12213D
Tritanopia (blue-blind)
#2D1C27
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2f153e;
/* rgb */ color: rgb(47, 21, 62);
/* oklch */ color: oklch(25.5% 0.079 311.3);
Tailwind
colors: {
  custom: {
    50: '#695473',
    500: '#2f153e',
    950: '#000000',
  },
}
SCSS
$custom: #2f153e;
$custom-light: #695473;
$custom-dark: #000000;
JSON
{
  "hex": "#2f153e",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 62
  },
  "hsl": {
    "h": 278.049,
    "s": 49.398,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25527,
    "c": 0.07878,
    "h": 311.3
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#2F153E
secondary
#4F7639
accent
#D94F81
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2F153E

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

Preview Lab → · Contrast checker → · Palette generator →

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