#2A2F87#2A2F87

#2A2F87 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.144 H 274.1°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#2A2F87
RGBrgb(42, 47, 135)
HSLhsl(237, 53%, 35%)
HSVhsv(237, 69%, 53%)
CMYKcmyk(68.9%, 65.2%, 0%, 47.1%)
CIE-LABlab(24.56, 27.99, -49.88)
CIE-LCHlch(24.56, 57.20, 299.30°)
OKLaboklab(36.1% 0.0103 -0.1439)
OKLCHoklch(36.1% 0.144 274.1)
XYZxyz(6.3431, 4.2740, 23.4077)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F87 #87822A
analogous
#2A5E87 #2A2F87 #542A87
triadic
#2A2F87 #872A2F #2F872A
tetradic
#2A2F87 #872A5E #87822A #2A8754
square
#2A2F87 #872A5E #87822A #2A8754
split-complementary
#2A2F87 #87542A #5E872A
monochromatic
#0D0E2A #1B1F58 #2A2F87 #393FB6 #5E64CD

Accessibility & contrast

On white

11.32
#2A2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2A2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F87
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F87#FFFFFF#000000##FFFFFF
##2A2F871.0011.321.8611.32
#FFFFFF11.321.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8A
Deuteranopia (green-blind)
#003685
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2f87;
/* rgb */ color: rgb(42, 47, 135);
/* oklch */ color: oklch(36.1% 0.144 274.1);
Tailwind
colors: {
  custom: {
    50: '#7067ab',
    500: '#2a2f87',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f87;
$custom-light: #7067ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f87",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 236.774,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36097,
    "c": 0.14427,
    "h": 274.1
  },
  "luminance": 0.04275
}

Semantic roles & 50–950 ramp

primary
#2A2F87
secondary
#B3AE5A
accent
#D44CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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