#2F27A2#2F27A2

#2F27A2 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.187 H 275.5°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2F27A2
RGBrgb(47, 39, 162)
HSLhsl(244, 61%, 39%)
HSVhsv(244, 76%, 64%)
CMYKcmyk(71%, 75.9%, 0%, 36.5%)
CIE-LABlab(25.75, 42.90, -64.53)
CIE-LCHlch(25.75, 77.49, 303.61°)
OKLaboklab(37.85% 0.018 -0.1866)
OKLCHoklch(37.85% 0.187 275.5)
XYZxyz(8.4172, 4.6632, 34.6319)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F27A2 #9AA227
analogous
#275DA2 #2F27A2 #6C27A2
triadic
#2F27A2 #A22F27 #27A22F
tetradic
#2F27A2 #A2275D #9AA227 #27A26C
square
#2F27A2 #A2275D #9AA227 #27A26C
split-complementary
#2F27A2 #A26C27 #5DA227
monochromatic
#120F3F #211B71 #2F27A2 #4137CF #7069DB

Accessibility & contrast

On white

10.87
#2F27A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F27A2
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F27A2#FFFFFF#000000##FFFFFF
##2F27A21.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f27a2;
/* rgb */ color: rgb(47, 39, 162);
/* oklch */ color: oklch(37.8% 0.187 275.5);
Tailwind
colors: {
  custom: {
    50: '#7963bf',
    500: '#2f27a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f27a2;
$custom-light: #7963bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f27a2",
  "rgb": {
    "r": 47,
    "g": 39,
    "b": 162
  },
  "hsl": {
    "h": 243.902,
    "s": 61.194,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37848,
    "c": 0.18744,
    "h": 275.5
  },
  "luminance": 0.04664
}

Semantic roles & 50–950 ramp

primary
#2F27A2
secondary
#BBC164
accent
#E443DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F27A2

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

Preview Lab → · Contrast checker → · Palette generator →

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