#2F27B8#2F27B8

#2F27B8 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.2% C 0.214 H 273.5°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#2F27B8
RGBrgb(47, 39, 184)
HSLhsl(243, 65%, 44%)
HSVhsv(243, 79%, 72%)
CMYKcmyk(74.5%, 78.8%, 0%, 27.8%)
CIE-LABlab(28.15, 49.95, -73.78)
CIE-LCHlch(28.15, 89.09, 304.10°)
OKLaboklab(40.24% 0.0131 -0.2134)
OKLCHoklch(40.24% 0.214 273.5)
XYZxyz(10.5467, 5.5150, 45.8468)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27B8 #B0B827
analogous
#2767B8 #2F27B8 #7727B8
triadic
#2F27B8 #B82F27 #27B82F
tetradic
#2F27B8 #B82767 #B0B827 #27B877
square
#2F27B8 #B82767 #B0B827 #27B877
split-complementary
#2F27B8 #B87727 #67B827
monochromatic
#151253 #221C86 #2F27B8 #4D45D8 #7D77E2

Accessibility & contrast

On white

9.98
#2F27B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2F27B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27B8
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27B8#FFFFFF#000000##FFFFFF
##2F27B81.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BC
Deuteranopia (green-blind)
#003BB6
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f27b8;
/* rgb */ color: rgb(47, 39, 184);
/* oklch */ color: oklch(40.2% 0.214 273.5);
Tailwind
colors: {
  custom: {
    50: '#7e65cf',
    500: '#2f27b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f27b8;
$custom-light: #7e65cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27b8",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 184
  },
  "hsl": {
    "h": 243.31,
    "s": 65.022,
    "l": 43.725
  },
  "oklch": {
    "l": 0.40243,
    "c": 0.21384,
    "h": 273.5
  },
  "luminance": 0.05516
}

Semantic roles & 50–950 ramp

primary
#2F27B8
secondary
#C5CA71
accent
#E840DF
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F27B8

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

Preview Lab → · Contrast checker → · Palette generator →

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