#2A2F71#2A2F71

#2A2F71 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.2% C 0.112 H 275.5°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2A2F71
RGBrgb(42, 47, 113)
HSLhsl(236, 46%, 30%)
HSVhsv(236, 63%, 44%)
CMYKcmyk(62.8%, 58.4%, 0%, 55.7%)
CIE-LABlab(22.71, 19.87, -38.96)
CIE-LCHlch(22.71, 43.73, 297.02°)
OKLaboklab(34.16% 0.0107 -0.1118)
OKLCHoklch(34.16% 0.112 275.5)
XYZxyz(4.9510, 3.7171, 16.0762)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F71 #716C2A
analogous
#2A5271 #2A2F71 #492A71
triadic
#2A2F71 #712A2F #2F712A
tetradic
#2A2F71 #712A52 #716C2A #2A7149
square
#2A2F71 #712A52 #716C2A #2A7149
split-complementary
#2A2F71 #71492A #52712A
monochromatic
#090A18 #191C44 #2A2F71 #3B429E #555DC0

Accessibility & contrast

On white

12.04
#2A2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2A2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F71
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F71#FFFFFF#000000##FFFFFF
##2A2F711.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003973
Deuteranopia (green-blind)
#003370
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2a2f71;
/* rgb */ color: rgb(42, 47, 113);
/* oklch */ color: oklch(34.2% 0.112 275.5);
Tailwind
colors: {
  custom: {
    50: '#6b679a',
    500: '#2a2f71',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f71;
$custom-light: #6b679a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f71",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 235.775,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34157,
    "c": 0.11231,
    "h": 275.5
  },
  "luminance": 0.03718
}

Semantic roles & 50–950 ramp

primary
#2A2F71
secondary
#A39D54
accent
#CC52D5
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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