#2F277D#2F277D

#2F277D is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.139 H 280.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#2F277D
RGBrgb(47, 39, 125)
HSLhsl(246, 52%, 32%)
HSVhsv(246, 69%, 49%)
CMYKcmyk(62.4%, 68.8%, 0%, 51%)
CIE-LABlab(22.07, 30.43, -47.64)
CIE-LCHlch(22.07, 56.53, 302.57°)
OKLaboklab(34.11% 0.0247 -0.1372)
OKLCHoklch(34.11% 0.139 280.2)
XYZxyz(5.5983, 3.5356, 19.7855)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F277D #757D27
analogous
#274A7D #2F277D #5A277D
triadic
#2F277D #7D2F27 #277D2F
tetradic
#2F277D #7D274A #757D27 #277D5A
square
#2F277D #7D274A #757D27 #277D5A
split-complementary
#2F277D #7D5A27 #4A7D27
monochromatic
#0C0A20 #1D184E #2F277D #4136AC #5F55CA

Accessibility & contrast

On white

12.30
#2F277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2F277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F277D
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F277D#FFFFFF#000000##FFFFFF
##2F277D1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f277d;
/* rgb */ color: rgb(47, 39, 125);
/* oklch */ color: oklch(34.1% 0.139 280.2);
Tailwind
colors: {
  custom: {
    50: '#7162a3',
    500: '#2f277d',
    950: '#000000',
  },
}
SCSS
$custom: #2f277d;
$custom-light: #7162a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f277d",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 245.581,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34106,
    "c": 0.1394,
    "h": 280.2
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

primary
#2F277D
secondary
#A6AF51
accent
#DC4CCE
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2F277D

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

Preview Lab → · Contrast checker → · Palette generator →

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