#2A2F74#2A2F74

#2A2F74 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.117 H 275.3°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2A2F74
RGBrgb(42, 47, 116)
HSLhsl(236, 47%, 31%)
HSVhsv(236, 64%, 45%)
CMYKcmyk(63.8%, 59.5%, 0%, 54.5%)
CIE-LABlab(22.95, 20.98, -40.50)
CIE-LCHlch(22.95, 45.61, 297.38°)
OKLaboklab(34.41% 0.0108 -0.1163)
OKLCHoklch(34.41% 0.117 275.3)
XYZxyz(5.1227, 3.7858, 16.9804)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F74 #746F2A
analogous
#2A5474 #2A2F74 #4A2A74
triadic
#2A2F74 #742A2F #2F742A
tetradic
#2A2F74 #742A54 #746F2A #2A744A
square
#2A2F74 #742A54 #746F2A #2A744A
split-complementary
#2A2F74 #744A2A #54742A
monochromatic
#090B1A #1A1D47 #2A2F74 #3A41A1 #565EC2

Accessibility & contrast

On white

11.95
#2A2F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2A2F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F74
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F74#FFFFFF#000000##FFFFFF
##2A2F741.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A76
Deuteranopia (green-blind)
#003473
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2f74;
/* rgb */ color: rgb(42, 47, 116);
/* oklch */ color: oklch(34.4% 0.117 275.3);
Tailwind
colors: {
  custom: {
    50: '#6c679d',
    500: '#2a2f74',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f74;
$custom-light: #6c679d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f74",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 116
  },
  "hsl": {
    "h": 235.946,
    "s": 46.835,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34408,
    "c": 0.11682,
    "h": 275.3
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#2A2F74
secondary
#A6A054
accent
#CD51D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A2F74

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

Preview Lab → · Contrast checker → · Palette generator →

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