#2A2F84#2A2F84

#2A2F84 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.140 H 274.3°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2A2F84
RGBrgb(42, 47, 132)
HSLhsl(237, 52%, 34%)
HSVhsv(237, 68%, 52%)
CMYKcmyk(68.2%, 64.4%, 0%, 48.2%)
CIE-LABlab(24.29, 26.89, -48.44)
CIE-LCHlch(24.29, 55.41, 299.04°)
OKLaboklab(35.82% 0.0104 -0.1397)
OKLCHoklch(35.82% 0.14 274.3)
XYZxyz(6.1348, 4.1907, 22.3109)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F84 #847F2A
analogous
#2A5C84 #2A2F84 #522A84
triadic
#2A2F84 #842A2F #2F842A
tetradic
#2A2F84 #842A5C #847F2A #2A8452
square
#2A2F84 #842A5C #847F2A #2A8452
split-complementary
#2A2F84 #84522A #5C842A
monochromatic
#0C0E27 #1B1E56 #2A2F84 #3940B2 #5D63CB

Accessibility & contrast

On white

11.42
#2A2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A2F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F84
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F84#FFFFFF#000000##FFFFFF
##2A2F841.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E87
Deuteranopia (green-blind)
#003682
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2f84;
/* rgb */ color: rgb(42, 47, 132);
/* oklch */ color: oklch(35.8% 0.140 274.3);
Tailwind
colors: {
  custom: {
    50: '#7067a9',
    500: '#2a2f84',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f84;
$custom-light: #7067a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f84",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 236.667,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35821,
    "c": 0.14005,
    "h": 274.3
  },
  "luminance": 0.04191
}

Semantic roles & 50–950 ramp

primary
#2A2F84
secondary
#B1AC59
accent
#D34DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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