#2F28A9#2F28A9

#2F28A9 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.7% C 0.195 H 274.7°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#2F28A9
RGBrgb(47, 40, 169)
HSLhsl(243, 62%, 41%)
HSVhsv(243, 76%, 66%)
CMYKcmyk(72.2%, 76.3%, 0%, 33.7%)
CIE-LABlab(26.69, 44.63, -67.22)
CIE-LCHlch(26.69, 80.68, 303.58°)
OKLaboklab(38.73% 0.016 -0.1944)
OKLCHoklch(38.73% 0.195 274.7)
XYZxyz(9.0901, 4.9856, 38.0117)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28A9 #A2A928
analogous
#2861A9 #2F28A9 #6F28A9
triadic
#2F28A9 #A92F28 #28A92F
tetradic
#2F28A9 #A92861 #A2A928 #28A96F
square
#2F28A9 #A92861 #A2A928 #28A96F
split-complementary
#2F28A9 #A96F28 #61A928
monochromatic
#131146 #211C78 #2F28A9 #453DD1 #756FDD

Accessibility & contrast

On white

10.51
#2F28A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F28A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28A9
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28A9#FFFFFF#000000##FFFFFF
##2F28A91.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#0039A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f28a9;
/* rgb */ color: rgb(47, 40, 169);
/* oklch */ color: oklch(38.7% 0.195 274.7);
Tailwind
colors: {
  custom: {
    50: '#7b64c4',
    500: '#2f28a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f28a9;
$custom-light: #7b64c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28a9",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 169
  },
  "hsl": {
    "h": 243.256,
    "s": 61.722,
    "l": 40.98
  },
  "oklch": {
    "l": 0.38734,
    "c": 0.19504,
    "h": 274.7
  },
  "luminance": 0.04986
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F28A9

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

Preview Lab → · Contrast checker → · Palette generator →

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