#2F2D88#2F2D88

#2F2D88 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.147 H 277.1°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#2F2D88
RGBrgb(47, 45, 136)
HSLhsl(241, 50%, 35%)
HSVhsv(241, 67%, 53%)
CMYKcmyk(65.4%, 66.9%, 0%, 46.7%)
CIE-LABlab(24.51, 30.43, -50.58)
CIE-LCHlch(24.51, 59.02, 301.03°)
OKLaboklab(36.18% 0.0182 -0.1458)
OKLCHoklch(36.18% 0.147 277.1)
XYZxyz(6.5532, 4.2581, 23.7643)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2D88 #86882D
analogous
#2D5888 #2F2D88 #5C2D88
triadic
#2F2D88 #882F2D #2D882F
tetradic
#2F2D88 #882D58 #86882D #2D885C
square
#2F2D88 #882D58 #86882D #2D885C
split-complementary
#2F2D88 #885C2D #58882D
monochromatic
#0F0F2C #1F1E5A #2F2D88 #3F3CB6 #6664CC

Accessibility & contrast

On white

11.34
#2F2D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2F2D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2D88
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2D88#FFFFFF#000000##FFFFFF
##2F2D881.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003686
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2f2d88;
/* rgb */ color: rgb(47, 45, 136);
/* oklch */ color: oklch(36.2% 0.147 277.1);
Tailwind
colors: {
  custom: {
    50: '#7366ac',
    500: '#2f2d88',
    950: '#000000',
  },
}
SCSS
$custom: #2f2d88;
$custom-light: #7366ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2d88",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 241.319,
    "s": 50.276,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36181,
    "c": 0.14693,
    "h": 277.1
  },
  "luminance": 0.04259
}

Semantic roles & 50–950 ramp

primary
#2F2D88
secondary
#B0B25F
accent
#DA4ED7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2F2D88

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

Preview Lab → · Contrast checker → · Palette generator →

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