#2F28AA#2F28AA

#2F28AA is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.8% C 0.196 H 274.6°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#2F28AA
RGBrgb(47, 40, 170)
HSLhsl(243, 62%, 41%)
HSVhsv(243, 76%, 67%)
CMYKcmyk(72.4%, 76.5%, 0%, 33.3%)
CIE-LABlab(26.80, 44.96, -67.64)
CIE-LCHlch(26.80, 81.22, 303.61°)
OKLaboklab(38.84% 0.0158 -0.1956)
OKLCHoklch(38.84% 0.196 274.6)
XYZxyz(9.1844, 5.0233, 38.5080)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28AA #A3AA28
analogous
#2862AA #2F28AA #7028AA
triadic
#2F28AA #AA2F28 #28AA2F
tetradic
#2F28AA #AA2862 #A3AA28 #28AA70
square
#2F28AA #AA2862 #A3AA28 #28AA70
split-complementary
#2F28AA #AA7028 #62AA28
monochromatic
#141147 #211C78 #2F28AA #463ED2 #756FDD

Accessibility & contrast

On white

10.47
#2F28AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F28AA
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28AA#FFFFFF#000000##FFFFFF
##2F28AA1.0010.472.0010.47
#FFFFFF10.471.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f28aa;
/* rgb */ color: rgb(47, 40, 170);
/* oklch */ color: oklch(38.8% 0.196 274.6);
Tailwind
colors: {
  custom: {
    50: '#7b64c5',
    500: '#2f28aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f28aa;
$custom-light: #7b64c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28aa",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 170
  },
  "hsl": {
    "h": 243.231,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.38842,
    "c": 0.19626,
    "h": 274.6
  },
  "luminance": 0.05024
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F28AA

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

Preview Lab → · Contrast checker → · Palette generator →

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