#2F28A6#2F28A6

#2F28A6 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.4% C 0.191 H 275.0°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#2F28A6
RGBrgb(47, 40, 166)
HSLhsl(243, 61%, 40%)
HSVhsv(243, 76%, 65%)
CMYKcmyk(71.7%, 75.9%, 0%, 34.9%)
CIE-LABlab(26.37, 43.65, -65.93)
CIE-LCHlch(26.37, 79.07, 303.51°)
OKLaboklab(38.41% 0.0166 -0.1907)
OKLCHoklch(38.41% 0.191 275)
XYZxyz(8.8117, 4.8742, 36.5454)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28A6 #9FA628
analogous
#2860A6 #2F28A6 #6E28A6
triadic
#2F28A6 #A62F28 #28A62F
tetradic
#2F28A6 #A62860 #9FA628 #28A66E
square
#2F28A6 #A62860 #9FA628 #28A66E
split-complementary
#2F28A6 #A66E28 #60A628
monochromatic
#131043 #211C75 #2F28A6 #443BD0 #736DDC

Accessibility & contrast

On white

10.63
#2F28A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2F28A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28A6
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28A6#FFFFFF#000000##FFFFFF
##2F28A61.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f28a6;
/* rgb */ color: rgb(47, 40, 166);
/* oklch */ color: oklch(38.4% 0.191 275.0);
Tailwind
colors: {
  custom: {
    50: '#7a64c2',
    500: '#2f28a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f28a6;
$custom-light: #7a64c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28a6",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 166
  },
  "hsl": {
    "h": 243.333,
    "s": 61.165,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38413,
    "c": 0.19138,
    "h": 275
  },
  "luminance": 0.04875
}

Semantic roles & 50–950 ramp

primary
#2F28A6
secondary
#BDC267
accent
#E444DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2F28A6

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

Preview Lab → · Contrast checker → · Palette generator →

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