#2F27A1#2F27A1

#2F27A1 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.186 H 275.6°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2F27A1
RGBrgb(47, 39, 161)
HSLhsl(244, 61%, 39%)
HSVhsv(244, 76%, 63%)
CMYKcmyk(70.8%, 75.8%, 0%, 36.9%)
CIE-LABlab(25.65, 42.57, -64.10)
CIE-LCHlch(25.65, 76.95, 303.59°)
OKLaboklab(37.74% 0.0182 -0.1853)
OKLCHoklch(37.74% 0.186 275.6)
XYZxyz(8.3287, 4.6278, 34.1656)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27A1 #99A127
analogous
#275CA1 #2F27A1 #6C27A1
triadic
#2F27A1 #A12F27 #27A12F
tetradic
#2F27A1 #A1275C #99A127 #27A16C
square
#2F27A1 #A1275C #99A127 #27A16C
split-complementary
#2F27A1 #A16C27 #5CA127
monochromatic
#120F3E #211B70 #2F27A1 #4137CE #6F68DA

Accessibility & contrast

On white

10.90
#2F27A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F27A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27A1
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27A1#FFFFFF#000000##FFFFFF
##2F27A11.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f27a1;
/* rgb */ color: rgb(47, 39, 161);
/* oklch */ color: oklch(37.7% 0.186 275.6);
Tailwind
colors: {
  custom: {
    50: '#7963be',
    500: '#2f27a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f27a1;
$custom-light: #7963be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27a1",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 161
  },
  "hsl": {
    "h": 243.934,
    "s": 61,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37742,
    "c": 0.18621,
    "h": 275.6
  },
  "luminance": 0.04629
}

Semantic roles & 50–950 ramp

primary
#2F27A1
secondary
#BAC063
accent
#E444DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F27A1

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

Preview Lab → · Contrast checker → · Palette generator →

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