#2F276A#2F276A

#2F276A is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.4% C 0.112 H 283.6°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#2F276A
RGBrgb(47, 39, 106)
HSLhsl(247, 46%, 28%)
HSVhsv(247, 63%, 42%)
CMYKcmyk(55.7%, 63.2%, 0%, 58.4%)
CIE-LABlab(20.42, 23.87, -38.13)
CIE-LCHlch(20.42, 44.98, 302.04°)
OKLaboklab(32.39% 0.0264 -0.1093)
OKLCHoklch(32.39% 0.112 283.6)
XYZxyz(4.4985, 3.0957, 13.9934)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F276A #626A27
analogous
#27406A #2F276A #50276A
triadic
#2F276A #6A2F27 #276A2F
tetradic
#2F276A #6A2740 #626A27 #276A50
square
#2F276A #6A2740 #626A27 #276A50
split-complementary
#2F276A #6A5027 #406A27
monochromatic
#0A0816 #1B173D #2F276A #433797 #5B4EBE

Accessibility & contrast

On white

12.97
#2F276A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F276A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F276A
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F276A#FFFFFF#000000##FFFFFF
##2F276A1.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336C
Deuteranopia (green-blind)
#002F69
Tritanopia (blue-blind)
#173744
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f276a;
/* rgb */ color: rgb(47, 39, 106);
/* oklch */ color: oklch(32.4% 0.112 283.6);
Tailwind
colors: {
  custom: {
    50: '#6d6195',
    500: '#2f276a',
    950: '#000000',
  },
}
SCSS
$custom: #2f276a;
$custom-light: #6d6195;
$custom-dark: #000000;
JSON
{
  "hex": "#2f276a",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 106
  },
  "hsl": {
    "h": 247.164,
    "s": 46.207,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32389,
    "c": 0.11241,
    "h": 283.6
  },
  "luminance": 0.03096
}

Semantic roles & 50–950 ramp

primary
#2F276A
secondary
#949D50
accent
#D652C6
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#07050D
muted
#7A797E

Preview Lab

Preview with #2F276A

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

Preview Lab → · Contrast checker → · Palette generator →

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