#2F264D#2F264D

#2F264D is a dark, moderate violet. Relative luminance 0.025; OKLCH L 29.9% C 0.069 H 292.3°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#2F264D
RGBrgb(47, 38, 77)
HSLhsl(254, 34%, 23%)
HSVhsv(254, 51%, 30%)
CMYKcmyk(39%, 50.6%, 0%, 69.8%)
CIE-LABlab(18.04, 14.82, -22.71)
CIE-LCHlch(18.04, 27.11, 303.13°)
OKLaboklab(29.94% 0.0263 -0.064)
OKLCHoklch(29.94% 0.069 292.3)
XYZxyz(3.2046, 2.5263, 7.3385)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F264D #444D26
analogous
#26314D #2F264D #42264D
triadic
#2F264D #4D2F26 #264D2F
tetradic
#2F264D #4D2631 #444D26 #264D42
square
#2F264D #4D2631 #444D26 #264D42
split-complementary
#2F264D #4D4226 #314D26
monochromatic
#0D0A14 #161224 #2F264D #483A76 #614E9F

Accessibility & contrast

On white

13.95
#2F264D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2F264D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F264D
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F264D#FFFFFF#000000##FFFFFF
##2F264D1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192D4E
Deuteranopia (green-blind)
#1A2B4C
Tritanopia (blue-blind)
#282D35
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f264d;
/* rgb */ color: rgb(47, 38, 77);
/* oklch */ color: oklch(29.9% 0.069 292.3);
Tailwind
colors: {
  custom: {
    50: '#69607f',
    500: '#2f264d',
    950: '#000000',
  },
}
SCSS
$custom: #2f264d;
$custom-light: #69607f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f264d",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 77
  },
  "hsl": {
    "h": 253.846,
    "s": 33.913,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29938,
    "c": 0.06917,
    "h": 292.3
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#2F264D
secondary
#75804F
accent
#CA5EB1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2F264D

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

Preview Lab → · Contrast checker → · Palette generator →

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