#2D2F9B#2D2F9B

#2D2F9B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.2% C 0.171 H 274.0°. Best body text is #FFFFFF at 10.55:1 contrast (WCAG AA passes).

Color values

HEX#2D2F9B
RGBrgb(45, 47, 155)
HSLhsl(239, 55%, 39%)
HSVhsv(239, 71%, 61%)
CMYKcmyk(71%, 69.7%, 0%, 39.2%)
CIE-LABlab(26.61, 35.57, -58.86)
CIE-LCHlch(26.61, 68.78, 301.15°)
OKLaboklab(38.21% 0.0119 -0.1701)
OKLCHoklch(38.21% 0.171 274)
XYZxyz(8.0131, 4.9567, 31.5384)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F9B #9B992D
analogous
#2D669B #2D2F9B #622D9B
triadic
#2D2F9B #9B2D2F #2F9B2D
tetradic
#2D2F9B #9B2D66 #9B992D #2D9B62
square
#2D2F9B #9B2D66 #9B992D #2D9B62
split-complementary
#2D2F9B #9B622D #669B2D
monochromatic
#11123C #1F216C #2D2F9B #3E41C7 #6E6FD5

Accessibility & contrast

On white

10.55
#2D2F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#2D2F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F9B
10.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F9B#FFFFFF#000000##FFFFFF
##2D2F9B1.0010.551.9910.55
#FFFFFF10.551.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2d2f9b;
/* rgb */ color: rgb(45, 47, 155);
/* oklch */ color: oklch(38.2% 0.171 274.0);
Tailwind
colors: {
  custom: {
    50: '#7668ba',
    500: '#2d2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f9b;
$custom-light: #7668ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f9b",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 238.909,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38213,
    "c": 0.17053,
    "h": 274
  },
  "luminance": 0.04957
}

Semantic roles & 50–950 ramp

primary
#2D2F9B
secondary
#BCBA68
accent
#DC49DE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2D2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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