#2F2899#2F2899

#2F2899 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.0% C 0.175 H 276.3°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#2F2899
RGBrgb(47, 40, 153)
HSLhsl(244, 59%, 38%)
HSVhsv(244, 74%, 60%)
CMYKcmyk(69.3%, 73.9%, 0%, 40%)
CIE-LABlab(25.02, 39.35, -60.25)
CIE-LCHlch(25.02, 71.97, 303.15°)
OKLaboklab(37.05% 0.0193 -0.1741)
OKLCHoklch(37.05% 0.175 276.3)
XYZxyz(7.6790, 4.4211, 30.5795)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2899 #929928
analogous
#285999 #2F2899 #672899
triadic
#2F2899 #992F28 #28992F
tetradic
#2F2899 #992859 #929928 #289967
square
#2F2899 #992859 #929928 #289967
split-complementary
#2F2899 #996728 #599928
monochromatic
#110F38 #201B68 #2F2899 #3E35CA #6C65D7

Accessibility & contrast

On white

11.14
#2F2899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F2899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2899
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2899#FFFFFF#000000##FFFFFF
##2F28991.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003697
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f2899;
/* rgb */ color: rgb(47, 40, 153);
/* oklch */ color: oklch(37.0% 0.175 276.3);
Tailwind
colors: {
  custom: {
    50: '#7763b8',
    500: '#2f2899',
    950: '#000000',
  },
}
SCSS
$custom: #2f2899;
$custom-light: #7763b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2899",
  "rgb": {
    "r": 47,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 243.717,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37047,
    "c": 0.17517,
    "h": 276.3
  },
  "luminance": 0.04422
}

Semantic roles & 50–950 ramp

primary
#2F2899
secondary
#B7BD60
accent
#E246D8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2899

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

Preview Lab → · Contrast checker → · Palette generator →

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