#2D2F81#2D2F81

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

Color values

HEX#2D2F81
RGBrgb(45, 47, 129)
HSLhsl(239, 48%, 34%)
HSVhsv(239, 65%, 51%)
CMYKcmyk(65.1%, 63.6%, 0%, 49.4%)
CIE-LABlab(24.24, 26.29, -46.63)
CIE-LCHlch(24.24, 53.53, 299.41°)
OKLaboklab(35.76% 0.0143 -0.1343)
OKLCHoklch(35.76% 0.135 276.1)
XYZxyz(6.0599, 4.1754, 21.2512)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F81 #817F2D
analogous
#2D5981 #2D2F81 #552D81
triadic
#2D2F81 #812D2F #2F812D
tetradic
#2D2F81 #812D59 #817F2D #2D8155
square
#2D2F81 #812D59 #817F2D #2D8155
split-complementary
#2D2F81 #81552D #59812D
monochromatic
#0D0E26 #1D1E54 #2D2F81 #3D40AE #6163C8

Accessibility & contrast

On white

11.44
#2D2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F81
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F81#FFFFFF#000000##FFFFFF
##2D2F811.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D84
Deuteranopia (green-blind)
#00367F
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2d2f81;
/* rgb */ color: rgb(45, 47, 129);
/* oklch */ color: oklch(35.8% 0.135 276.1);
Tailwind
colors: {
  custom: {
    50: '#7067a6',
    500: '#2d2f81',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f81;
$custom-light: #7067a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f81",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 238.571,
    "s": 48.276,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35759,
    "c": 0.13502,
    "h": 276.1
  },
  "luminance": 0.04176
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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