#2A2F80#2A2F80

#2A2F80 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.134 H 274.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#2A2F80
RGBrgb(42, 47, 128)
HSLhsl(237, 51%, 33%)
HSVhsv(237, 67%, 50%)
CMYKcmyk(67.2%, 63.3%, 0%, 49.8%)
CIE-LABlab(23.94, 25.42, -46.49)
CIE-LCHlch(23.94, 52.99, 298.67°)
OKLaboklab(35.46% 0.0106 -0.134)
OKLCHoklch(35.46% 0.134 274.5)
XYZxyz(5.8664, 4.0833, 20.8969)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F80 #807B2A
analogous
#2A5A80 #2A2F80 #502A80
triadic
#2A2F80 #802A2F #2F802A
tetradic
#2A2F80 #802A5A #807B2A #2A8050
square
#2A2F80 #802A5A #807B2A #2A8050
split-complementary
#2A2F80 #80502A #5A802A
monochromatic
#0C0D24 #1B1E52 #2A2F80 #3940AE #5B62C9

Accessibility & contrast

On white

11.56
#2A2F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2A2F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F80
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F80#FFFFFF#000000##FFFFFF
##2A2F801.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D83
Deuteranopia (green-blind)
#00357E
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2f80;
/* rgb */ color: rgb(42, 47, 128);
/* oklch */ color: oklch(35.5% 0.134 274.5);
Tailwind
colors: {
  custom: {
    50: '#6f67a6',
    500: '#2a2f80',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f80;
$custom-light: #6f67a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f80",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 128
  },
  "hsl": {
    "h": 236.512,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.35457,
    "c": 0.13437,
    "h": 274.5
  },
  "luminance": 0.04084
}

Semantic roles & 50–950 ramp

primary
#2A2F80
secondary
#AFAA57
accent
#D24EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2A2F80

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

Preview Lab → · Contrast checker → · Palette generator →

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