#2A2F73#2A2F73

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

Color values

HEX#2A2F73
RGBrgb(42, 47, 115)
HSLhsl(236, 46%, 31%)
HSVhsv(236, 63%, 45%)
CMYKcmyk(63.5%, 59.1%, 0%, 54.9%)
CIE-LABlab(22.87, 20.61, -39.99)
CIE-LCHlch(22.87, 44.98, 297.26°)
OKLaboklab(34.32% 0.0107 -0.1148)
OKLCHoklch(34.32% 0.115 275.3)
XYZxyz(5.0649, 3.7627, 16.6757)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F73 #736E2A
analogous
#2A5373 #2A2F73 #492A73
triadic
#2A2F73 #732A2F #2F732A
tetradic
#2A2F73 #732A53 #736E2A #2A7349
square
#2A2F73 #732A53 #736E2A #2A7349
split-complementary
#2A2F73 #73492A #53732A
monochromatic
#090A19 #1A1D46 #2A2F73 #3A41A0 #565DC1

Accessibility & contrast

On white

11.98
#2A2F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F73
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F73#FFFFFF#000000##FFFFFF
##2A2F731.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a2f73;
/* rgb */ color: rgb(42, 47, 115);
/* oklch */ color: oklch(34.3% 0.115 275.3);
Tailwind
colors: {
  custom: {
    50: '#6c679c',
    500: '#2a2f73',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f73;
$custom-light: #6c679c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f73",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 115
  },
  "hsl": {
    "h": 235.89,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34324,
    "c": 0.11532,
    "h": 275.3
  },
  "luminance": 0.03763
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A2F73

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

Preview Lab → · Contrast checker → · Palette generator →

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