#2D299E#2D299E

#2D299E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.181 H 274.8°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#2D299E
RGBrgb(45, 41, 158)
HSLhsl(242, 59%, 39%)
HSVhsv(242, 74%, 62%)
CMYKcmyk(71.5%, 74.1%, 0%, 38%)
CIE-LABlab(25.60, 40.23, -62.36)
CIE-LCHlch(25.60, 74.21, 302.82°)
OKLaboklab(37.58% 0.0151 -0.1803)
OKLCHoklch(37.58% 0.181 274.8)
XYZxyz(8.0446, 4.6116, 32.8073)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D299E #9A9E29
analogous
#29609E #2D299E #68299E
triadic
#2D299E #9E2D29 #299E2D
tetradic
#2D299E #9E2960 #9A9E29 #299E68
square
#2D299E #9E2960 #9A9E29 #299E68
split-complementary
#2D299E #9E6829 #609E29
monochromatic
#11103D #1F1C6D #2D299E #3E39CC #6D69D8

Accessibility & contrast

On white

10.92
#2D299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2D299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D299E
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D299E#FFFFFF#000000##FFFFFF
##2D299E1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#00379C
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2d299e;
/* rgb */ color: rgb(45, 41, 158);
/* oklch */ color: oklch(37.6% 0.181 274.8);
Tailwind
colors: {
  custom: {
    50: '#7764bc',
    500: '#2d299e',
    950: '#000000',
  },
}
SCSS
$custom: #2d299e;
$custom-light: #7764bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d299e",
  "rgb": {
    "r": 45,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 242.051,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37577,
    "c": 0.18094,
    "h": 274.8
  },
  "luminance": 0.04612
}

Semantic roles & 50–950 ramp

primary
#2D299E
secondary
#BBBF64
accent
#E246DD
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2D299E

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

Preview Lab → · Contrast checker → · Palette generator →

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