#2A2F4E#2A2F4E

#2A2F4E is a dark, muted blue. Relative luminance 0.031; OKLCH L 31.6% C 0.056 H 275.8°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2A2F4E
RGBrgb(42, 47, 78)
HSLhsl(232, 30%, 24%)
HSVhsv(232, 46%, 31%)
CMYKcmyk(46.2%, 39.7%, 0%, 69.4%)
CIE-LABlab(20.34, 7.22, -19.77)
CIE-LCHlch(20.34, 21.05, 290.07°)
OKLaboklab(31.6% 0.0056 -0.0555)
OKLCHoklch(31.6% 0.056 275.8)
XYZxyz(3.3461, 3.0752, 7.6235)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F4E #4E492A
analogous
#2A414E #2A2F4E #372A4E
triadic
#2A2F4E #4E2A2F #2F4E2A
tetradic
#2A2F4E #4E2A41 #4E492A #2A4E37
square
#2A2F4E #4E2A41 #4E492A #2A4E37
split-complementary
#2A2F4E #4E372A #414E2A
monochromatic
#0B0C14 #151726 #2A2F4E #3F4776 #555F9E

Accessibility & contrast

On white

13.00
#2A2F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2A2F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F4E
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F4E#FFFFFF#000000##FFFFFF
##2A2F4E1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24334F
Deuteranopia (green-blind)
#22304D
Tritanopia (blue-blind)
#1E353A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2a2f4e;
/* rgb */ color: rgb(42, 47, 78);
/* oklch */ color: oklch(31.6% 0.056 275.8);
Tailwind
colors: {
  custom: {
    50: '#65677f',
    500: '#2a2f4e',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f4e;
$custom-light: #65677f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f4e",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 78
  },
  "hsl": {
    "h": 231.667,
    "s": 30,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31597,
    "c": 0.05582,
    "h": 275.8
  },
  "luminance": 0.03075
}

Semantic roles & 50–950 ramp

primary
#2A2F4E
secondary
#807A54
accent
#B862C6
background
#F6F6F7
surface
#EBEBEE
border
#C6C6C9
text
#06060A
muted
#7A7A7C

Preview Lab

Preview with #2A2F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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