#2F276F#2F276F

#2F276F is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.8% C 0.120 H 282.6°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2F276F
RGBrgb(47, 39, 111)
HSLhsl(247, 48%, 29%)
HSVhsv(247, 65%, 44%)
CMYKcmyk(57.7%, 64.9%, 0%, 56.5%)
CIE-LABlab(20.84, 25.59, -40.70)
CIE-LCHlch(20.84, 48.08, 302.17°)
OKLaboklab(32.82% 0.0261 -0.1168)
OKLCHoklch(32.82% 0.12 282.6)
XYZxyz(4.7662, 3.2028, 15.4029)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F276F #676F27
analogous
#27436F #2F276F #53276F
triadic
#2F276F #6F2F27 #276F2F
tetradic
#2F276F #6F2743 #676F27 #276F53
square
#2F276F #6F2743 #676F27 #276F53
split-complementary
#2F276F #6F5327 #436F27
monochromatic
#0A0817 #1C1742 #2F276F #42379C #5C4FC1

Accessibility & contrast

On white

12.80
#2F276F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F276F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F276F
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F276F#FFFFFF#000000##FFFFFF
##2F276F1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003571
Deuteranopia (green-blind)
#00306E
Tritanopia (blue-blind)
#113847
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f276f;
/* rgb */ color: rgb(47, 39, 111);
/* oklch */ color: oklch(32.8% 0.120 282.6);
Tailwind
colors: {
  custom: {
    50: '#6e6199',
    500: '#2f276f',
    950: '#000000',
  },
}
SCSS
$custom: #2f276f;
$custom-light: #6e6199;
$custom-dark: #000000;
JSON
{
  "hex": "#2f276f",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 111
  },
  "hsl": {
    "h": 246.667,
    "s": 48,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32824,
    "c": 0.11969,
    "h": 282.6
  },
  "luminance": 0.03203
}

Semantic roles & 50–950 ramp

primary
#2F276F
secondary
#98A250
accent
#D850C9
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #2F276F

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

Preview Lab → · Contrast checker → · Palette generator →

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