#2A2F78#2A2F78

#2A2F78 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 34.8% C 0.123 H 275.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2A2F78
RGBrgb(42, 47, 120)
HSLhsl(236, 48%, 32%)
HSVhsv(236, 65%, 47%)
CMYKcmyk(65%, 60.8%, 0%, 52.9%)
CIE-LABlab(23.27, 22.46, -42.52)
CIE-LCHlch(23.27, 48.09, 297.84°)
OKLaboklab(34.75% 0.0108 -0.1223)
OKLCHoklch(34.75% 0.123 275)
XYZxyz(5.3604, 3.8809, 18.2323)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F78 #78732A
analogous
#2A5678 #2A2F78 #4C2A78
triadic
#2A2F78 #782A2F #2F782A
tetradic
#2A2F78 #782A56 #78732A #2A784C
square
#2A2F78 #782A56 #78732A #2A784C
split-complementary
#2A2F78 #784C2A #56782A
monochromatic
#0A0B1D #1A1D4B #2A2F78 #3A41A5 #585FC5

Accessibility & contrast

On white

11.82
#2A2F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2A2F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F78
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F78#FFFFFF#000000##FFFFFF
##2A2F781.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7A
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#00414E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2a2f78;
/* rgb */ color: rgb(42, 47, 120);
/* oklch */ color: oklch(34.8% 0.123 275.0);
Tailwind
colors: {
  custom: {
    50: '#6d67a0',
    500: '#2a2f78',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f78;
$custom-light: #6d67a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f78",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 120
  },
  "hsl": {
    "h": 236.154,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3475,
    "c": 0.12276,
    "h": 275
  },
  "luminance": 0.03881
}

Semantic roles & 50–950 ramp

primary
#2A2F78
secondary
#AAA454
accent
#CF50D8
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060F
muted
#7B7A7E

Preview Lab

Preview with #2A2F78

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

Preview Lab → · Contrast checker → · Palette generator →

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