#2F277C#2F277C

#2F277C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.138 H 280.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#2F277C
RGBrgb(47, 39, 124)
HSLhsl(246, 52%, 32%)
HSVhsv(246, 69%, 49%)
CMYKcmyk(62.1%, 68.5%, 0%, 51.4%)
CIE-LABlab(21.98, 30.09, -47.15)
CIE-LCHlch(21.98, 55.94, 302.54°)
OKLaboklab(34.01% 0.0248 -0.1358)
OKLCHoklch(34.01% 0.138 280.4)
XYZxyz(5.5348, 3.5102, 19.4508)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F277C #747C27
analogous
#274A7C #2F277C #5A277C
triadic
#2F277C #7C2F27 #277C2F
tetradic
#2F277C #7C274A #747C27 #277C5A
square
#2F277C #7C274A #747C27 #277C5A
split-complementary
#2F277C #7C5A27 #4A7C27
monochromatic
#0C0A1F #1D184D #2F277C #4136AB #5F54C9

Accessibility & contrast

On white

12.34
#2F277C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2F277C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F277C
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F277C#FFFFFF#000000##FFFFFF
##2F277C1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2f277c;
/* rgb */ color: rgb(47, 39, 124);
/* oklch */ color: oklch(34.0% 0.138 280.4);
Tailwind
colors: {
  custom: {
    50: '#7162a3',
    500: '#2f277c',
    950: '#000000',
  },
}
SCSS
$custom: #2f277c;
$custom-light: #7162a3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f277c",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 124
  },
  "hsl": {
    "h": 245.647,
    "s": 52.147,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34011,
    "c": 0.13803,
    "h": 280.4
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F277C

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

Preview Lab → · Contrast checker → · Palette generator →

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