#2F2A99#2F2A99

#2F2A99 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.173 H 276.0°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2F2A99
RGBrgb(47, 42, 153)
HSLhsl(243, 57%, 38%)
HSVhsv(243, 73%, 60%)
CMYKcmyk(69.3%, 72.5%, 0%, 40%)
CIE-LABlab(25.44, 38.17, -59.56)
CIE-LCHlch(25.44, 70.74, 302.66°)
OKLaboklab(37.35% 0.018 -0.1721)
OKLCHoklch(37.35% 0.173 276)
XYZxyz(7.7481, 4.5595, 30.6026)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A99 #94992A
analogous
#2A5C99 #2F2A99 #662A99
triadic
#2F2A99 #992F2A #2A992F
tetradic
#2F2A99 #992A5C #94992A #2A9966
square
#2F2A99 #992A5C #94992A #2A9966
split-complementary
#2F2A99 #99662A #5C992A
monochromatic
#111039 #201D69 #2F2A99 #3E38C8 #6D68D6

Accessibility & contrast

On white

10.98
#2F2A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F2A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A99
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A99#FFFFFF#000000##FFFFFF
##2F2A991.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#00495E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f2a99;
/* rgb */ color: rgb(47, 42, 153);
/* oklch */ color: oklch(37.3% 0.173 276.0);
Tailwind
colors: {
  custom: {
    50: '#7765b8',
    500: '#2f2a99',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a99;
$custom-light: #7765b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a99",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 153
  },
  "hsl": {
    "h": 242.703,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37349,
    "c": 0.17302,
    "h": 276
  },
  "luminance": 0.0456
}

Semantic roles & 50–950 ramp

primary
#2F2A99
secondary
#B8BC63
accent
#E048D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #2F2A99

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

Preview Lab → · Contrast checker → · Palette generator →

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