#2F276D#2F276D

#2F276D is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.6% C 0.117 H 283.0°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2F276D
RGBrgb(47, 39, 109)
HSLhsl(247, 47%, 29%)
HSVhsv(247, 64%, 43%)
CMYKcmyk(56.9%, 64.2%, 0%, 57.3%)
CIE-LABlab(20.67, 24.90, -39.68)
CIE-LCHlch(20.67, 46.84, 302.11°)
OKLaboklab(32.65% 0.0263 -0.1138)
OKLCHoklch(32.65% 0.117 283)
XYZxyz(4.6573, 3.1592, 14.8294)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F276D #656D27
analogous
#27426D #2F276D #52276D
triadic
#2F276D #6D2F27 #276D2F
tetradic
#2F276D #6D2742 #656D27 #276D52
square
#2F276D #6D2742 #656D27 #276D52
split-complementary
#2F276D #6D5227 #426D27
monochromatic
#0A0817 #1C1740 #2F276D #42379A #5B4FC0

Accessibility & contrast

On white

12.87
#2F276D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F276D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F276D
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F276D#FFFFFF#000000##FFFFFF
##2F276D1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346F
Deuteranopia (green-blind)
#002F6C
Tritanopia (blue-blind)
#143846
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f276d;
/* rgb */ color: rgb(47, 39, 109);
/* oklch */ color: oklch(32.6% 0.117 283.0);
Tailwind
colors: {
  custom: {
    50: '#6e6197',
    500: '#2f276d',
    950: '#000000',
  },
}
SCSS
$custom: #2f276d;
$custom-light: #6e6197;
$custom-dark: #000000;
JSON
{
  "hex": "#2f276d",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 109
  },
  "hsl": {
    "h": 246.857,
    "s": 47.297,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32648,
    "c": 0.1168,
    "h": 283
  },
  "luminance": 0.0316
}

Semantic roles & 50–950 ramp

primary
#2F276D
secondary
#97A050
accent
#D751C8
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #2F276D

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

Preview Lab → · Contrast checker → · Palette generator →

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