#2D2F99#2D2F99

#2D2F99 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.0% C 0.168 H 274.2°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#2D2F99
RGBrgb(45, 47, 153)
HSLhsl(239, 55%, 39%)
HSVhsv(239, 71%, 60%)
CMYKcmyk(70.6%, 69.3%, 0%, 40%)
CIE-LABlab(26.42, 34.87, -57.95)
CIE-LCHlch(26.42, 67.64, 301.04°)
OKLaboklab(38.02% 0.0122 -0.1675)
OKLCHoklch(38.02% 0.168 274.2)
XYZxyz(7.8466, 4.8901, 30.6612)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F99 #99972D
analogous
#2D6599 #2D2F99 #612D99
triadic
#2D2F99 #992D2F #2F992D
tetradic
#2D2F99 #992D65 #99972D #2D9961
square
#2D2F99 #992D65 #99972D #2D9961
split-complementary
#2D2F99 #99612D #65992D
monochromatic
#11123A #1F206A #2D2F99 #3D40C6 #6C6ED4

Accessibility & contrast

On white

10.62
#2D2F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#2D2F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F99
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F99#FFFFFF#000000##FFFFFF
##2D2F991.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#003997
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2d2f99;
/* rgb */ color: rgb(45, 47, 153);
/* oklch */ color: oklch(38.0% 0.168 274.2);
Tailwind
colors: {
  custom: {
    50: '#7668b8',
    500: '#2d2f99',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f99;
$custom-light: #7668b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f99",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 153
  },
  "hsl": {
    "h": 238.889,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38016,
    "c": 0.1679,
    "h": 274.2
  },
  "luminance": 0.04891
}

Semantic roles & 50–950 ramp

primary
#2D2F99
secondary
#BBB967
accent
#DB4ADE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #2D2F99

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

Preview Lab → · Contrast checker → · Palette generator →

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