#2D2F89#2D2F89

#2D2F89 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.5% C 0.146 H 275.4°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#2D2F89
RGBrgb(45, 47, 137)
HSLhsl(239, 51%, 36%)
HSVhsv(239, 67%, 54%)
CMYKcmyk(67.2%, 65.7%, 0%, 46.3%)
CIE-LABlab(24.94, 29.17, -50.50)
CIE-LCHlch(24.94, 58.32, 300.02°)
OKLaboklab(36.49% 0.0138 -0.1456)
OKLCHoklch(36.49% 0.146 275.4)
XYZxyz(6.6126, 4.3965, 24.1622)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F89 #89872D
analogous
#2D5D89 #2D2F89 #592D89
triadic
#2D2F89 #892D2F #2F892D
tetradic
#2D2F89 #892D5D #89872D #2D8959
square
#2D2F89 #892D5D #89872D #2D8959
split-complementary
#2D2F89 #89592D #5D892D
monochromatic
#0F0F2D #1E1F5B #2D2F89 #3C3FB7 #6466CC

Accessibility & contrast

On white

11.17
#2D2F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2D2F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2D2F89
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F89#FFFFFF#000000##FFFFFF
##2D2F891.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8C
Deuteranopia (green-blind)
#003787
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2d2f89;
/* rgb */ color: rgb(45, 47, 137);
/* oklch */ color: oklch(36.5% 0.146 275.4);
Tailwind
colors: {
  custom: {
    50: '#7268ac',
    500: '#2d2f89',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f89;
$custom-light: #7268ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f89",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 137
  },
  "hsl": {
    "h": 238.696,
    "s": 50.549,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36488,
    "c": 0.14626,
    "h": 275.4
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

primary
#2D2F89
secondary
#B3B15F
accent
#D74EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2D2F89

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

Preview Lab → · Contrast checker → · Palette generator →

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