#2D2F87#2D2F87

#2D2F87 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.3% C 0.143 H 275.6°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2D2F87
RGBrgb(45, 47, 135)
HSLhsl(239, 50%, 35%)
HSVhsv(239, 67%, 53%)
CMYKcmyk(66.7%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.76, 28.45, -49.54)
CIE-LCHlch(24.76, 57.13, 299.87°)
OKLaboklab(36.3% 0.014 -0.1428)
OKLCHoklch(36.3% 0.143 275.6)
XYZxyz(6.4704, 4.3396, 23.4136)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F87 #87852D
analogous
#2D5C87 #2D2F87 #582D87
triadic
#2D2F87 #872D2F #2F872D
tetradic
#2D2F87 #872D5C #87852D #2D8758
square
#2D2F87 #872D5C #87852D #2D8758
split-complementary
#2D2F87 #87582D #5C872D
monochromatic
#0E0F2B #1E1F59 #2D2F87 #3C3FB5 #6366CB

Accessibility & contrast

On white

11.24
#2D2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2D2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F87
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F87#FFFFFF#000000##FFFFFF
##2D2F871.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003785
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2f87;
/* rgb */ color: rgb(45, 47, 135);
/* oklch */ color: oklch(36.3% 0.143 275.6);
Tailwind
colors: {
  custom: {
    50: '#7267ab',
    500: '#2d2f87',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f87;
$custom-light: #7267ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f87",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 238.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36303,
    "c": 0.14348,
    "h": 275.6
  },
  "luminance": 0.0434
}

Semantic roles & 50–950 ramp

primary
#2D2F87
secondary
#B2B05E
accent
#D64EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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