#2F264F#2F264F

#2F264F is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.1% C 0.072 H 291.5°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#2F264F
RGBrgb(47, 38, 79)
HSLhsl(253, 35%, 23%)
HSVhsv(253, 52%, 31%)
CMYKcmyk(40.5%, 51.9%, 0%, 69%)
CIE-LABlab(18.17, 15.46, -23.86)
CIE-LCHlch(18.17, 28.43, 302.94°)
OKLaboklab(30.08% 0.0266 -0.0673)
OKLCHoklch(30.08% 0.072 291.5)
XYZxyz(3.2763, 2.5550, 7.7162)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F264F #464F26
analogous
#26314F #2F264F #43264F
triadic
#2F264F #4F2F26 #264F2F
tetradic
#2F264F #4F2631 #464F26 #264F43
square
#2F264F #4F2631 #464F26 #264F43
split-complementary
#2F264F #4F4326 #314F26
monochromatic
#0C0A15 #161226 #2F264F #483A78 #604EA2

Accessibility & contrast

On white

13.90
#2F264F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F264F
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F264F#FFFFFF#000000##FFFFFF
##2F264F1.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172D50
Deuteranopia (green-blind)
#182C4E
Tritanopia (blue-blind)
#272E36
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f264f;
/* rgb */ color: rgb(47, 38, 79);
/* oklch */ color: oklch(30.1% 0.072 291.5);
Tailwind
colors: {
  custom: {
    50: '#696080',
    500: '#2f264f',
    950: '#000000',
  },
}
SCSS
$custom: #2f264f;
$custom-light: #696080;
$custom-dark: #000000;
JSON
{
  "hex": "#2f264f",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 79
  },
  "hsl": {
    "h": 253.171,
    "s": 35.043,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30076,
    "c": 0.0724,
    "h": 291.5
  },
  "luminance": 0.02555
}

Semantic roles & 50–950 ramp

primary
#2F264F
secondary
#77824F
accent
#CB5DB3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2F264F

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

Preview Lab → · Contrast checker → · Palette generator →

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