#2F2A87#2F2A87

#2F2A87 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.6% C 0.149 H 278.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#2F2A87
RGBrgb(47, 42, 135)
HSLhsl(243, 53%, 35%)
HSVhsv(243, 69%, 53%)
CMYKcmyk(65.2%, 68.9%, 0%, 47.1%)
CIE-LABlab(23.70, 31.99, -51.27)
CIE-LCHlch(23.70, 60.43, 301.96°)
OKLaboklab(35.57% 0.0208 -0.1478)
OKLCHoklch(35.57% 0.149 278)
XYZxyz(6.3720, 4.0090, 23.3550)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A87 #82872A
analogous
#2A5487 #2F2A87 #5E2A87
triadic
#2F2A87 #872F2A #2A872F
tetradic
#2F2A87 #872A54 #82872A #2A875E
square
#2F2A87 #872A54 #82872A #2A875E
split-complementary
#2F2A87 #875E2A #54872A
monochromatic
#0E0D2A #1F1B58 #2F2A87 #3F39B6 #645ECD

Accessibility & contrast

On white

11.65
#2F2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2F2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A87
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A87#FFFFFF#000000##FFFFFF
##2F2A871.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004255
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2f2a87;
/* rgb */ color: rgb(47, 42, 135);
/* oklch */ color: oklch(35.6% 0.149 278.0);
Tailwind
colors: {
  custom: {
    50: '#7364ab',
    500: '#2f2a87',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a87;
$custom-light: #7364ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a87",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 243.226,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35568,
    "c": 0.14929,
    "h": 278
  },
  "luminance": 0.0401
}

Semantic roles & 50–950 ramp

primary
#2F2A87
secondary
#AEB35A
accent
#DC4CD4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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