#2A2F62#2A2F62

#2A2F62 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.0% C 0.089 H 276.2°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#2A2F62
RGBrgb(42, 47, 98)
HSLhsl(235, 40%, 27%)
HSVhsv(235, 57%, 38%)
CMYKcmyk(57.1%, 52%, 0%, 61.6%)
CIE-LABlab(21.60, 14.33, -31.03)
CIE-LCHlch(21.60, 34.18, 294.79°)
OKLaboklab(32.97% 0.0095 -0.0885)
OKLCHoklch(32.97% 0.089 276.2)
XYZxyz(4.1753, 3.4068, 11.9905)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F62 #625D2A
analogous
#2A4B62 #2A2F62 #412A62
triadic
#2A2F62 #622A2F #2F622A
tetradic
#2A2F62 #622A4B #625D2A #2A6241
square
#2A2F62 #622A4B #625D2A #2A6241
split-complementary
#2A2F62 #62412A #4B622A
monochromatic
#090A15 #181A37 #2A2F62 #3C448D #525BB5

Accessibility & contrast

On white

12.49
#2A2F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2A2F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F62
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F62#FFFFFF#000000##FFFFFF
##2A2F621.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173664
Deuteranopia (green-blind)
#103261
Tritanopia (blue-blind)
#103A43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2a2f62;
/* rgb */ color: rgb(42, 47, 98);
/* oklch */ color: oklch(33.0% 0.089 276.2);
Tailwind
colors: {
  custom: {
    50: '#69678f',
    500: '#2a2f62',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f62;
$custom-light: #69678f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f62",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 98
  },
  "hsl": {
    "h": 234.643,
    "s": 40,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3297,
    "c": 0.08898,
    "h": 276.2
  },
  "luminance": 0.03407
}

Semantic roles & 50–950 ramp

primary
#2A2F62
secondary
#948F53
accent
#C558D0
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#06060C
muted
#7A7A7D

Preview Lab

Preview with #2A2F62

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

Preview Lab → · Contrast checker → · Palette generator →

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