#2D2F88#2D2F88

#2D2F88 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.145 H 275.5°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#2D2F88
RGBrgb(45, 47, 136)
HSLhsl(239, 50%, 35%)
HSVhsv(239, 67%, 53%)
CMYKcmyk(66.9%, 65.4%, 0%, 46.7%)
CIE-LABlab(24.85, 28.81, -50.02)
CIE-LCHlch(24.85, 57.72, 299.94°)
OKLaboklab(36.39% 0.0139 -0.1442)
OKLCHoklch(36.39% 0.145 275.5)
XYZxyz(6.5412, 4.3679, 23.7862)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D2F88 #88862D
analogous
#2D5C88 #2D2F88 #582D88
triadic
#2D2F88 #882D2F #2F882D
tetradic
#2D2F88 #882D5C #88862D #2D8858
square
#2D2F88 #882D5C #88862D #2D8858
split-complementary
#2D2F88 #88582D #5C882D
monochromatic
#0F0F2C #1E1F5A #2D2F88 #3C3FB6 #6466CC

Accessibility & contrast

On white

11.21
#2D2F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2D2F88
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D2F88#FFFFFF#000000##FFFFFF
##2D2F881.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d2f88;
/* rgb */ color: rgb(45, 47, 136);
/* oklch */ color: oklch(36.4% 0.145 275.5);
Tailwind
colors: {
  custom: {
    50: '#7268ac',
    500: '#2d2f88',
    950: '#000000',
  },
}
SCSS
$custom: #2d2f88;
$custom-light: #7268ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2d2f88",
  "rgb": {
    "r": 45,
    "g": 47,
    "b": 136
  },
  "hsl": {
    "h": 238.681,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36395,
    "c": 0.14488,
    "h": 275.5
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2D2F88

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

Preview Lab → · Contrast checker → · Palette generator →

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