#2A2F72#2A2F72

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

Color values

HEX#2A2F72
RGBrgb(42, 47, 114)
HSLhsl(236, 46%, 31%)
HSVhsv(236, 63%, 45%)
CMYKcmyk(63.2%, 58.8%, 0%, 55.3%)
CIE-LABlab(22.79, 20.24, -39.47)
CIE-LCHlch(22.79, 44.36, 297.14°)
OKLaboklab(34.24% 0.0107 -0.1133)
OKLCHoklch(34.24% 0.114 275.4)
XYZxyz(5.0076, 3.7398, 16.3743)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F72 #726D2A
analogous
#2A5372 #2A2F72 #492A72
triadic
#2A2F72 #722A2F #2F722A
tetradic
#2A2F72 #722A53 #726D2A #2A7249
square
#2A2F72 #722A53 #726D2A #2A7249
split-complementary
#2A2F72 #72492A #53722A
monochromatic
#090A19 #1A1D45 #2A2F72 #3A419F #565DC1

Accessibility & contrast

On white

12.01
#2A2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2A2F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F72
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F72#FFFFFF#000000##FFFFFF
##2A2F721.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2f72;
/* rgb */ color: rgb(42, 47, 114);
/* oklch */ color: oklch(34.2% 0.114 275.4);
Tailwind
colors: {
  custom: {
    50: '#6c679b',
    500: '#2a2f72',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f72;
$custom-light: #6c679b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f72",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 235.833,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3424,
    "c": 0.11382,
    "h": 275.4
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#2A2F72
secondary
#A49E54
accent
#CD52D6
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2A2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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