#2B0F3F#2B0F3F

#2B0F3F is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.089 H 307.8°. Best body text is #FFFFFF at 16.90:1 contrast (WCAG AA passes).

Color values

HEX#2B0F3F
RGBrgb(43, 15, 63)
HSLhsl(275, 62%, 15%)
HSVhsv(275, 76%, 25%)
CMYKcmyk(31.7%, 76.2%, 0%, 75.3%)
CIE-LABlab(10.66, 24.58, -24.82)
CIE-LCHlch(10.66, 34.93, 314.72°)
OKLaboklab(24.06% 0.0545 -0.0703)
OKLCHoklch(24.06% 0.089 307.8)
XYZxyz(2.0641, 1.2141, 4.8273)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0F3F #233F0F
analogous
#130F3F #2B0F3F #3F0F3B
triadic
#2B0F3F #3F2B0F #0F3F2B
tetradic
#2B0F3F #3F130F #233F0F #0F3B3F
square
#2B0F3F #3F130F #233F0F #0F3B3F
split-complementary
#2B0F3F #3B3F0F #0F3F13
monochromatic
#110619 #110619 #2B0F3F #4D1B70 #6E27A2

Accessibility & contrast

On white

16.90
#2B0F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#2B0F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0F3F
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0F3F#FFFFFF#000000##FFFFFF
##2B0F3F1.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C40
Deuteranopia (green-blind)
#051D3E
Tritanopia (blue-blind)
#281925
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #2b0f3f;
/* rgb */ color: rgb(43, 15, 63);
/* oklch */ color: oklch(24.1% 0.089 307.8);
Tailwind
colors: {
  custom: {
    50: '#674f74',
    500: '#2b0f3f',
    950: '#000000',
  },
}
SCSS
$custom: #2b0f3f;
$custom-light: #674f74;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0f3f",
  "rgb": {
    "r": 43,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 275,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.2406,
    "c": 0.08893,
    "h": 307.8
  },
  "luminance": 0.01214
}

Semantic roles & 50–950 ramp

primary
#2B0F3F
secondary
#4F7930
accent
#E54386
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B0F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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