#2F2A88#2F2A88

#2F2A88 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.151 H 277.9°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#2F2A88
RGBrgb(47, 42, 136)
HSLhsl(243, 53%, 35%)
HSVhsv(243, 69%, 53%)
CMYKcmyk(65.4%, 69.1%, 0%, 46.7%)
CIE-LABlab(23.79, 32.34, -51.74)
CIE-LCHlch(23.79, 61.02, 302.01°)
OKLaboklab(35.66% 0.0207 -0.1492)
OKLCHoklch(35.66% 0.151 277.9)
XYZxyz(6.4428, 4.0373, 23.7275)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2A88 #83882A
analogous
#2A5488 #2F2A88 #5E2A88
triadic
#2F2A88 #882F2A #2A882F
tetradic
#2F2A88 #882A54 #83882A #2A885E
square
#2F2A88 #882A54 #83882A #2A885E
split-complementary
#2F2A88 #885E2A #54882A
monochromatic
#0F0D2A #1F1C59 #2F2A88 #3F38B7 #655FCE

Accessibility & contrast

On white

11.62
#2F2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2F2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2A88
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2A88#FFFFFF#000000##FFFFFF
##2F2A881.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2f2a88;
/* rgb */ color: rgb(47, 42, 136);
/* oklch */ color: oklch(35.7% 0.151 277.9);
Tailwind
colors: {
  custom: {
    50: '#7364ac',
    500: '#2f2a88',
    950: '#000000',
  },
}
SCSS
$custom: #2f2a88;
$custom-light: #7364ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2a88",
  "rgb": {
    "r": 47,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 243.191,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35664,
    "c": 0.15065,
    "h": 277.9
  },
  "luminance": 0.04038
}

Semantic roles & 50–950 ramp

primary
#2F2A88
secondary
#AFB35B
accent
#DC4CD5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2F2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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