#2F27AF#2F27AF

#2F27AF is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.3% C 0.203 H 274.3°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#2F27AF
RGBrgb(47, 39, 175)
HSLhsl(244, 64%, 42%)
HSVhsv(244, 78%, 69%)
CMYKcmyk(73.1%, 77.7%, 0%, 31.4%)
CIE-LABlab(27.16, 47.10, -70.06)
CIE-LCHlch(27.16, 84.42, 303.91°)
OKLaboklab(39.25% 0.0151 -0.2026)
OKLCHoklch(39.25% 0.203 274.3)
XYZxyz(9.6331, 5.1496, 41.0354)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27AF #A7AF27
analogous
#2763AF #2F27AF #7327AF
triadic
#2F27AF #AF2F27 #27AF2F
tetradic
#2F27AF #AF2763 #A7AF27 #27AF73
square
#2F27AF #AF2763 #A7AF27 #27AF73
split-complementary
#2F27AF #AF7327 #63AF27
monochromatic
#14114B #221C7D #2F27AF #483FD4 #7871DF

Accessibility & contrast

On white

10.34
#2F27AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F27AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27AF
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27AF#FFFFFF#000000##FFFFFF
##2F27AF1.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#003AAD
Tritanopia (blue-blind)
#00506A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f27af;
/* rgb */ color: rgb(47, 39, 175);
/* oklch */ color: oklch(39.3% 0.203 274.3);
Tailwind
colors: {
  custom: {
    50: '#7c64c8',
    500: '#2f27af',
    950: '#000000',
  },
}
SCSS
$custom: #2f27af;
$custom-light: #7c64c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27af",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 175
  },
  "hsl": {
    "h": 243.529,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39252,
    "c": 0.2032,
    "h": 274.3
  },
  "luminance": 0.05151
}

Semantic roles & 50–950 ramp

primary
#2F27AF
secondary
#C1C66B
accent
#E741DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F27AF

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

Preview Lab → · Contrast checker → · Palette generator →

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