#2A2F7A#2A2F7A

#2A2F7A is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.9% C 0.126 H 274.9°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#2A2F7A
RGBrgb(42, 47, 122)
HSLhsl(236, 49%, 32%)
HSVhsv(236, 66%, 48%)
CMYKcmyk(65.6%, 61.5%, 0%, 52.2%)
CIE-LABlab(23.44, 23.20, -43.53)
CIE-LCHlch(23.44, 49.32, 298.06°)
OKLaboklab(34.92% 0.0108 -0.1252)
OKLCHoklch(34.92% 0.126 274.9)
XYZxyz(5.4831, 3.9300, 18.8782)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F7A #7A752A
analogous
#2A577A #2A2F7A #4D2A7A
triadic
#2A2F7A #7A2A2F #2F7A2A
tetradic
#2A2F7A #7A2A57 #7A752A #2A7A4D
square
#2A2F7A #7A2A57 #7A752A #2A7A4D
split-complementary
#2A2F7A #7A4D2A #577A2A
monochromatic
#0B0C1F #1A1D4C #2A2F7A #3A41A8 #595FC6

Accessibility & contrast

On white

11.76
#2A2F7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2A2F7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F7A
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F7A#FFFFFF#000000##FFFFFF
##2A2F7A1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7C
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2f7a;
/* rgb */ color: rgb(42, 47, 122);
/* oklch */ color: oklch(34.9% 0.126 274.9);
Tailwind
colors: {
  custom: {
    50: '#6d67a1',
    500: '#2a2f7a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f7a;
$custom-light: #6d67a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f7a",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 122
  },
  "hsl": {
    "h": 236.25,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34924,
    "c": 0.12569,
    "h": 274.9
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#2A2F7A
secondary
#ABA655
accent
#D04FD8
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A2F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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