#2A2F8A#2A2F8A

#2A2F8A is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.148 H 273.9°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#2A2F8A
RGBrgb(42, 47, 138)
HSLhsl(237, 53%, 35%)
HSVhsv(237, 70%, 54%)
CMYKcmyk(69.6%, 65.9%, 0%, 45.9%)
CIE-LABlab(24.83, 29.09, -51.32)
CIE-LCHlch(24.83, 58.99, 299.55°)
OKLaboklab(36.38% 0.0101 -0.1481)
OKLCHoklch(36.38% 0.148 273.9)
XYZxyz(6.5573, 4.3596, 24.5358)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F8A #8A852A
analogous
#2A5F8A #2A2F8A #552A8A
triadic
#2A2F8A #8A2A2F #2F8A2A
tetradic
#2A2F8A #8A2A5F #8A852A #2A8A55
square
#2A2F8A #8A2A5F #8A852A #2A8A55
split-complementary
#2A2F8A #8A552A #5F8A2A
monochromatic
#0D0F2C #1C1F5B #2A2F8A #383FB9 #6066CF

Accessibility & contrast

On white

11.22
#2A2F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2A2F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F8A
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F8A#FFFFFF#000000##FFFFFF
##2A2F8A1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003788
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2a2f8a;
/* rgb */ color: rgb(42, 47, 138);
/* oklch */ color: oklch(36.4% 0.148 273.9);
Tailwind
colors: {
  custom: {
    50: '#7167ad',
    500: '#2a2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f8a;
$custom-light: #7167ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f8a",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 236.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36378,
    "c": 0.14844,
    "h": 273.9
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#2A2F8A
secondary
#B4B05B
accent
#D54BDD
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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