#2F27B3#2F27B3

#2F27B3 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.7% C 0.208 H 273.9°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).

Color values

HEX#2F27B3
RGBrgb(47, 39, 179)
HSLhsl(243, 64%, 43%)
HSVhsv(243, 78%, 70%)
CMYKcmyk(73.7%, 78.2%, 0%, 29.8%)
CIE-LABlab(27.60, 48.37, -71.72)
CIE-LCHlch(27.60, 86.51, 304.00°)
OKLaboklab(39.69% 0.0142 -0.2075)
OKLCHoklch(39.69% 0.208 273.9)
XYZxyz(10.0318, 5.3090, 43.1351)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27B3 #ABB327
analogous
#2765B3 #2F27B3 #7527B3
triadic
#2F27B3 #B32F27 #27B32F
tetradic
#2F27B3 #B32765 #ABB327 #27B375
square
#2F27B3 #B32765 #ABB327 #27B375
split-complementary
#2F27B3 #B37527 #65B327
monochromatic
#15114E #221C81 #2F27B3 #4A41D6 #7A74E1

Accessibility & contrast

On white

10.18
#2F27B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2F27B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27B3
10.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27B3#FFFFFF#000000##FFFFFF
##2F27B31.0010.182.0610.18
#FFFFFF10.181.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048B7
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f27b3;
/* rgb */ color: rgb(47, 39, 179);
/* oklch */ color: oklch(39.7% 0.208 273.9);
Tailwind
colors: {
  custom: {
    50: '#7d64cb',
    500: '#2f27b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f27b3;
$custom-light: #7d64cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27b3",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 179
  },
  "hsl": {
    "h": 243.429,
    "s": 64.22,
    "l": 42.745
  },
  "oklch": {
    "l": 0.39691,
    "c": 0.20795,
    "h": 273.9
  },
  "luminance": 0.0531
}

Semantic roles & 50–950 ramp

primary
#2F27B3
secondary
#C3C86E
accent
#E741DE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F27B3

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

Preview Lab → · Contrast checker → · Palette generator →

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