#2F27A8#2F27A8

#2F27A8 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.5% C 0.195 H 274.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2F27A8
RGBrgb(47, 39, 168)
HSLhsl(244, 62%, 41%)
HSVhsv(244, 77%, 66%)
CMYKcmyk(72%, 76.8%, 0%, 34.1%)
CIE-LABlab(26.39, 44.85, -67.11)
CIE-LCHlch(26.39, 80.71, 303.76°)
OKLaboklab(38.49% 0.0167 -0.1941)
OKLCHoklch(38.49% 0.195 274.9)
XYZxyz(8.9634, 4.8817, 37.5081)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27A8 #A0A827
analogous
#275FA8 #2F27A8 #6F27A8
triadic
#2F27A8 #A82F27 #27A82F
tetradic
#2F27A8 #A8275F #A0A827 #27A86F
square
#2F27A8 #A8275F #A0A827 #27A86F
split-complementary
#2F27A8 #A86F27 #5FA827
monochromatic
#131045 #211B76 #2F27A8 #443BD1 #736CDD

Accessibility & contrast

On white

10.62
#2F27A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F27A8
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27A8#FFFFFF#000000##FFFFFF
##2F27A81.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f27a8;
/* rgb */ color: rgb(47, 39, 168);
/* oklch */ color: oklch(38.5% 0.195 274.9);
Tailwind
colors: {
  custom: {
    50: '#7b64c3',
    500: '#2f27a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f27a8;
$custom-light: #7b64c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27a8",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 243.721,
    "s": 62.319,
    "l": 40.588
  },
  "oklch": {
    "l": 0.38492,
    "c": 0.19477,
    "h": 274.9
  },
  "luminance": 0.04883
}

Semantic roles & 50–950 ramp

primary
#2F27A8
secondary
#BEC367
accent
#E542DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2F27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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