#2F27B2#2F27B2

#2F27B2 is a dark, highly saturated blue. Relative luminance 0.053; OKLCH L 39.6% C 0.207 H 274.0°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#2F27B2
RGBrgb(47, 39, 178)
HSLhsl(243, 64%, 43%)
HSVhsv(243, 78%, 70%)
CMYKcmyk(73.6%, 78.1%, 0%, 30.2%)
CIE-LABlab(27.49, 48.05, -71.31)
CIE-LCHlch(27.49, 85.99, 303.98°)
OKLaboklab(39.58% 0.0144 -0.2063)
OKLCHoklch(39.58% 0.207 274)
XYZxyz(9.9310, 5.2687, 42.6044)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27B2 #AAB227
analogous
#2765B2 #2F27B2 #7427B2
triadic
#2F27B2 #B22F27 #27B22F
tetradic
#2F27B2 #B22765 #AAB227 #27B274
square
#2F27B2 #B22765 #AAB227 #27B274
split-complementary
#2F27B2 #B27427 #65B227
monochromatic
#14114E #221C80 #2F27B2 #4941D5 #7973E0

Accessibility & contrast

On white

10.22
#2F27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F27B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F27B2
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27B2#FFFFFF#000000##FFFFFF
##2F27B21.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B6
Deuteranopia (green-blind)
#003AB0
Tritanopia (blue-blind)
#00516C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f27b2;
/* rgb */ color: rgb(47, 39, 178);
/* oklch */ color: oklch(39.6% 0.207 274.0);
Tailwind
colors: {
  custom: {
    50: '#7d64ca',
    500: '#2f27b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f27b2;
$custom-light: #7d64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27b2",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 178
  },
  "hsl": {
    "h": 243.453,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.39581,
    "c": 0.20677,
    "h": 274
  },
  "luminance": 0.0527
}

Semantic roles & 50–950 ramp

primary
#2F27B2
secondary
#C2C86D
accent
#E741DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F27B2

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

Preview Lab → · Contrast checker → · Palette generator →

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