#2D2F82#2D2F82

#2D2F82 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.136 H 276.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#2D2F82
RGBrgb(45, 47, 130)
HSLhsl(239, 49%, 34%)
HSVhsv(239, 65%, 51%)
CMYKcmyk(65.4%, 63.8%, 0%, 49%)
CIE-LABlab(24.33, 26.65, -47.12)
CIE-LCHlch(24.33, 54.13, 299.49°)
OKLaboklab(35.85% 0.0143 -0.1357)
OKLCHoklch(35.85% 0.136 276)
XYZxyz(6.1267, 4.2021, 21.6030)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F82 #82802D
analogous
#2D5A82 #2D2F82 #562D82
triadic
#2D2F82 #822D2F #2F822D
tetradic
#2D2F82 #822D5A #82802D #2D8256
square
#2D2F82 #822D5A #82802D #2D8256
split-complementary
#2D2F82 #82562D #5A822D
monochromatic
#0E0E27 #1D1F55 #2D2F82 #3D3FAF #6164C8

Accessibility & contrast

On white

11.41
#2D2F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2D2F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F82
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F82#FFFFFF#000000##FFFFFF
##2D2F821.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E85
Deuteranopia (green-blind)
#003680
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2f82;
/* rgb */ color: rgb(45, 47, 130);
/* oklch */ color: oklch(35.8% 0.136 276.0);
Tailwind
colors: {
  custom: {
    50: '#7067a7',
    500: '#2d2f82',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f82;
$custom-light: #7067a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f82",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 238.588,
    "s": 48.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35848,
    "c": 0.13644,
    "h": 276
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#2D2F82
secondary
#AFAD5C
accent
#D550D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2D2F82

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

Preview Lab → · Contrast checker → · Palette generator →

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