#2F299B#2F299B

#2F299B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.4% C 0.177 H 275.9°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2F299B
RGBrgb(47, 41, 155)
HSLhsl(243, 58%, 38%)
HSVhsv(243, 74%, 61%)
CMYKcmyk(69.7%, 73.5%, 0%, 39.2%)
CIE-LABlab(25.43, 39.44, -60.80)
CIE-LCHlch(25.43, 72.47, 302.97°)
OKLaboklab(37.4% 0.0183 -0.1757)
OKLCHoklch(37.4% 0.177 275.9)
XYZxyz(7.8797, 4.5561, 31.4681)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F299B #959B29
analogous
#295C9B #2F299B #68299B
triadic
#2F299B #9B2F29 #299B2F
tetradic
#2F299B #9B295C #959B29 #299B68
square
#2F299B #9B295C #959B29 #299B68
split-complementary
#2F299B #9B6829 #5C9B29
monochromatic
#120F3A #201C6B #2F299B #3F37CA #6D67D7

Accessibility & contrast

On white

10.99
#2F299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F299B
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F299B#FFFFFF#000000##FFFFFF
##2F299B1.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f299b;
/* rgb */ color: rgb(47, 41, 155);
/* oklch */ color: oklch(37.4% 0.177 275.9);
Tailwind
colors: {
  custom: {
    50: '#7764ba',
    500: '#2f299b',
    950: '#000000',
  },
}
SCSS
$custom: #2f299b;
$custom-light: #7764ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2f299b",
  "rgb": {
    "r": 47,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 243.158,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37402,
    "c": 0.17665,
    "h": 275.9
  },
  "luminance": 0.04557
}

Semantic roles & 50–950 ramp

primary
#2F299B
secondary
#B8BD63
accent
#E146D9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F299B

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

Preview Lab → · Contrast checker → · Palette generator →

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