#2F28AB#2F28AB

#2F28AB is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.9% C 0.197 H 274.5°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#2F28AB
RGBrgb(47, 40, 171)
HSLhsl(243, 62%, 41%)
HSVhsv(243, 77%, 67%)
CMYKcmyk(72.5%, 76.6%, 0%, 32.9%)
CIE-LABlab(26.91, 45.28, -68.07)
CIE-LCHlch(26.91, 81.75, 303.63°)
OKLaboklab(38.95% 0.0155 -0.1969)
OKLCHoklch(38.95% 0.197 274.5)
XYZxyz(9.2793, 5.0613, 39.0081)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28AB #A4AB28
analogous
#2863AB #2F28AB #7128AB
triadic
#2F28AB #AB2F28 #28AB2F
tetradic
#2F28AB #AB2863 #A4AB28 #28AB71
square
#2F28AB #AB2863 #A4AB28 #28AB71
split-complementary
#2F28AB #AB7128 #63AB28
monochromatic
#141148 #211C79 #2F28AB #463ED2 #7670DE

Accessibility & contrast

On white

10.44
#2F28AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#2F28AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28AB
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28AB#FFFFFF#000000##FFFFFF
##2F28AB1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AF
Deuteranopia (green-blind)
#0039A9
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f28ab;
/* rgb */ color: rgb(47, 40, 171);
/* oklch */ color: oklch(38.9% 0.197 274.5);
Tailwind
colors: {
  custom: {
    50: '#7b64c5',
    500: '#2f28ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f28ab;
$custom-light: #7b64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28ab",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 171
  },
  "hsl": {
    "h": 243.206,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.38949,
    "c": 0.19747,
    "h": 274.5
  },
  "luminance": 0.05062
}

Semantic roles & 50–950 ramp

primary
#2F28AB
secondary
#C0C46A
accent
#E543DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F28AB

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

Preview Lab → · Contrast checker → · Palette generator →

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