#2F28BB#2F28BB

#2F28BB is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 40.7% C 0.216 H 273.2°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#2F28BB
RGBrgb(47, 40, 187)
HSLhsl(243, 65%, 45%)
HSVhsv(243, 79%, 73%)
CMYKcmyk(74.9%, 78.6%, 0%, 26.7%)
CIE-LABlab(28.67, 50.38, -74.71)
CIE-LCHlch(28.67, 90.11, 304.00°)
OKLaboklab(40.7% 0.012 -0.2162)
OKLCHoklch(40.7% 0.217 273.2)
XYZxyz(10.8977, 5.7086, 47.5316)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28BB #B4BB28
analogous
#286BBB #2F28BB #7928BB
triadic
#2F28BB #BB2F28 #28BB2F
tetradic
#2F28BB #BB286B #B4BB28 #28BB79
square
#2F28BB #BB286B #B4BB28 #28BB79
split-complementary
#2F28BB #BB7928 #6BBB28
monochromatic
#161256 #221D89 #2F28BB #4F48D8 #807BE3

Accessibility & contrast

On white

9.80
#2F28BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2F28BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28BB
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28BB#FFFFFF#000000##FFFFFF
##2F28BB1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004ABF
Deuteranopia (green-blind)
#003CB8
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2f28bb;
/* rgb */ color: rgb(47, 40, 187);
/* oklch */ color: oklch(40.7% 0.216 273.2);
Tailwind
colors: {
  custom: {
    50: '#7f65d1',
    500: '#2f28bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f28bb;
$custom-light: #7f65d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28bb",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 187
  },
  "hsl": {
    "h": 242.857,
    "s": 64.758,
    "l": 44.51
  },
  "oklch": {
    "l": 0.40699,
    "c": 0.2165,
    "h": 273.2
  },
  "luminance": 0.0571
}

Semantic roles & 50–950 ramp

primary
#2F28BB
secondary
#C7CB74
accent
#E840E0
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0C0614
muted
#7D7A83

Preview Lab

Preview with #2F28BB

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

Preview Lab → · Contrast checker → · Palette generator →

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