#2F27A9#2F27A9

#2F27A9 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.6% C 0.196 H 274.8°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#2F27A9
RGBrgb(47, 39, 169)
HSLhsl(244, 63%, 41%)
HSVhsv(244, 77%, 66%)
CMYKcmyk(72.2%, 76.9%, 0%, 33.7%)
CIE-LABlab(26.50, 45.17, -67.53)
CIE-LCHlch(26.50, 81.25, 303.78°)
OKLaboklab(38.6% 0.0164 -0.1953)
OKLCHoklch(38.6% 0.196 274.8)
XYZxyz(9.0569, 4.9191, 38.0006)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27A9 #A1A927
analogous
#2760A9 #2F27A9 #7027A9
triadic
#2F27A9 #A92F27 #27A92F
tetradic
#2F27A9 #A92760 #A1A927 #27A970
square
#2F27A9 #A92760 #A1A927 #27A970
split-complementary
#2F27A9 #A97027 #60A927
monochromatic
#131046 #211C77 #2F27A9 #453BD2 #746DDD

Accessibility & contrast

On white

10.58
#2F27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F27A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27A9
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27A9#FFFFFF#000000##FFFFFF
##2F27A91.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#0039A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f27a9;
/* rgb */ color: rgb(47, 39, 169);
/* oklch */ color: oklch(38.6% 0.196 274.8);
Tailwind
colors: {
  custom: {
    50: '#7b64c4',
    500: '#2f27a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f27a9;
$custom-light: #7b64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27a9",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 243.692,
    "s": 62.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.386,
    "c": 0.19599,
    "h": 274.8
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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