#2A2F7B#2A2F7B

#2A2F7B is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.0% C 0.127 H 274.9°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#2A2F7B
RGBrgb(42, 47, 123)
HSLhsl(236, 49%, 32%)
HSVhsv(236, 66%, 48%)
CMYKcmyk(65.9%, 61.8%, 0%, 51.8%)
CIE-LABlab(23.52, 23.57, -44.02)
CIE-LCHlch(23.52, 49.94, 298.17°)
OKLaboklab(35.01% 0.0108 -0.1267)
OKLCHoklch(35.01% 0.127 274.9)
XYZxyz(5.5453, 3.9549, 19.2062)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F7B #7B762A
analogous
#2A587B #2A2F7B #4D2A7B
triadic
#2A2F7B #7B2A2F #2F7B2A
tetradic
#2A2F7B #7B2A58 #7B762A #2A7B4D
square
#2A2F7B #7B2A58 #7B762A #2A7B4D
split-complementary
#2A2F7B #7B4D2A #587B2A
monochromatic
#0B0C20 #1A1E4D #2A2F7B #3A40A9 #5960C6

Accessibility & contrast

On white

11.73
#2A2F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2F7B
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F7B#FFFFFF#000000##FFFFFF
##2A2F7B1.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7E
Deuteranopia (green-blind)
#003579
Tritanopia (blue-blind)
#004250
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2a2f7b;
/* rgb */ color: rgb(42, 47, 123);
/* oklch */ color: oklch(35.0% 0.127 274.9);
Tailwind
colors: {
  custom: {
    50: '#6e67a2',
    500: '#2a2f7b',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f7b;
$custom-light: #6e67a2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f7b",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 123
  },
  "hsl": {
    "h": 236.296,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35012,
    "c": 0.12715,
    "h": 274.9
  },
  "luminance": 0.03955
}

Semantic roles & 50–950 ramp

primary
#2A2F7B
secondary
#ACA755
accent
#D04FD9
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#08060F
muted
#7A7A7F

Preview Lab

Preview with #2A2F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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