#2D299B#2D299B

#2D299B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.177 H 275.1°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2D299B
RGBrgb(45, 41, 155)
HSLhsl(242, 58%, 38%)
HSVhsv(242, 74%, 61%)
CMYKcmyk(71%, 73.5%, 0%, 39.2%)
CIE-LABlab(25.29, 39.21, -61.04)
CIE-LCHlch(25.29, 72.55, 302.72°)
OKLaboklab(37.27% 0.0157 -0.1764)
OKLCHoklch(37.27% 0.177 275.1)
XYZxyz(7.7896, 4.5096, 31.4639)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D299B #979B29
analogous
#295E9B #2D299B #66299B
triadic
#2D299B #9B2D29 #299B2D
tetradic
#2D299B #9B295E #979B29 #299B66
square
#2D299B #9B295E #979B29 #299B66
split-complementary
#2D299B #9B6629 #5E9B29
monochromatic
#110F3A #1F1C6B #2D299B #3C37CA #6B67D7

Accessibility & contrast

On white

11.04
#2D299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2D299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D299B
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D299B#FFFFFF#000000##FFFFFF
##2D299B1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.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: #2d299b;
/* rgb */ color: rgb(45, 41, 155);
/* oklch */ color: oklch(37.3% 0.177 275.1);
Tailwind
colors: {
  custom: {
    50: '#7764ba',
    500: '#2d299b',
    950: '#000000',
  },
}
SCSS
$custom: #2d299b;
$custom-light: #7764ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d299b",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 242.105,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37265,
    "c": 0.17714,
    "h": 275.1
  },
  "luminance": 0.0451
}

Semantic roles & 50–950 ramp

primary
#2D299B
secondary
#BABD63
accent
#E146DC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D299B

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

Preview Lab → · Contrast checker → · Palette generator →

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