#2F264E#2F264E

#2F264E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.0% C 0.071 H 291.9°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#2F264E
RGBrgb(47, 38, 78)
HSLhsl(254, 34%, 23%)
HSVhsv(254, 51%, 31%)
CMYKcmyk(39.7%, 51.3%, 0%, 69.4%)
CIE-LABlab(18.10, 15.14, -23.28)
CIE-LCHlch(18.10, 27.77, 303.03°)
OKLaboklab(30.01% 0.0264 -0.0657)
OKLCHoklch(30.01% 0.071 291.9)
XYZxyz(3.2402, 2.5405, 7.5259)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F264E #454E26
analogous
#26314E #2F264E #43264E
triadic
#2F264E #4E2F26 #264E2F
tetradic
#2F264E #4E2631 #454E26 #264E43
square
#2F264E #4E2631 #454E26 #264E43
split-complementary
#2F264E #4E4326 #314E26
monochromatic
#0C0A15 #161225 #2F264E #483A77 #614EA0

Accessibility & contrast

On white

13.92
#2F264E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F264E
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F264E#FFFFFF#000000##FFFFFF
##2F264E1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182D4F
Deuteranopia (green-blind)
#192B4D
Tritanopia (blue-blind)
#272E36
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2f264e;
/* rgb */ color: rgb(47, 38, 78);
/* oklch */ color: oklch(30.0% 0.071 291.9);
Tailwind
colors: {
  custom: {
    50: '#696080',
    500: '#2f264e',
    950: '#000000',
  },
}
SCSS
$custom: #2f264e;
$custom-light: #696080;
$custom-dark: #000000;
JSON
{
  "hex": "#2f264e",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 78
  },
  "hsl": {
    "h": 253.5,
    "s": 34.483,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30007,
    "c": 0.07078,
    "h": 291.9
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#2F264E
secondary
#76814F
accent
#CB5DB2
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06050A
muted
#7A797C

Preview Lab

Preview with #2F264E

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

Preview Lab → · Contrast checker → · Palette generator →

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