#2F28A8#2F28A8

#2F28A8 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.6% C 0.194 H 274.8°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2F28A8
RGBrgb(47, 40, 168)
HSLhsl(243, 62%, 41%)
HSVhsv(243, 76%, 66%)
CMYKcmyk(72%, 76.2%, 0%, 34.1%)
CIE-LABlab(26.59, 44.30, -66.79)
CIE-LCHlch(26.59, 80.15, 303.56°)
OKLaboklab(38.63% 0.0162 -0.1931)
OKLCHoklch(38.63% 0.194 274.8)
XYZxyz(8.9966, 4.9482, 37.5192)
Luminance0.0495 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F28A8 #A1A828
analogous
#2861A8 #2F28A8 #6F28A8
triadic
#2F28A8 #A82F28 #28A82F
tetradic
#2F28A8 #A82861 #A1A828 #28A86F
square
#2F28A8 #A82861 #A1A828 #28A86F
split-complementary
#2F28A8 #A86F28 #61A828
monochromatic
#131045 #211C77 #2F28A8 #453DD1 #746EDC

Accessibility & contrast

On white

10.55
#2F28A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2F28A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F28A8
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F28A8#FFFFFF#000000##FFFFFF
##2F28A81.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f28a8;
/* rgb */ color: rgb(47, 40, 168);
/* oklch */ color: oklch(38.6% 0.194 274.8);
Tailwind
colors: {
  custom: {
    50: '#7b64c3',
    500: '#2f28a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f28a8;
$custom-light: #7b64c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f28a8",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 168
  },
  "hsl": {
    "h": 243.281,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.38627,
    "c": 0.19383,
    "h": 274.8
  },
  "luminance": 0.04949
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F28A8

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

Preview Lab → · Contrast checker → · Palette generator →

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