#2F27AB#2F27AB

#2F27AB is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.8% C 0.198 H 274.6°. Best body text is #FFFFFF at 10.50:1 contrast (WCAG AA passes).

Color values

HEX#2F27AB
RGBrgb(47, 39, 171)
HSLhsl(244, 63%, 41%)
HSVhsv(244, 77%, 67%)
CMYKcmyk(72.5%, 77.2%, 0%, 32.9%)
CIE-LABlab(26.72, 45.82, -68.38)
CIE-LCHlch(26.72, 82.31, 303.83°)
OKLaboklab(38.82% 0.016 -0.1978)
OKLCHoklch(38.82% 0.198 274.6)
XYZxyz(9.2461, 4.9947, 38.9970)
Luminance0.0500 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27AB #A3AB27
analogous
#2761AB #2F27AB #7127AB
triadic
#2F27AB #AB2F27 #27AB2F
tetradic
#2F27AB #AB2761 #A3AB27 #27AB71
square
#2F27AB #AB2761 #A3AB27 #27AB71
split-complementary
#2F27AB #AB7127 #61AB27
monochromatic
#141047 #211C79 #2F27AB #463DD3 #756EDE

Accessibility & contrast

On white

10.50
#2F27AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F27AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27AB
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27AB#FFFFFF#000000##FFFFFF
##2F27AB1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#0039A9
Tritanopia (blue-blind)
#004E68
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f27ab;
/* rgb */ color: rgb(47, 39, 171);
/* oklch */ color: oklch(38.8% 0.198 274.6);
Tailwind
colors: {
  custom: {
    50: '#7b64c5',
    500: '#2f27ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f27ab;
$custom-light: #7b64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27ab",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 171
  },
  "hsl": {
    "h": 243.636,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38816,
    "c": 0.19841,
    "h": 274.6
  },
  "luminance": 0.04996
}

Semantic roles & 50–950 ramp

primary
#2F27AB
secondary
#BFC569
accent
#E642DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2F27AB

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

Preview Lab → · Contrast checker → · Palette generator →

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