#2A2F85#2A2F85

#2A2F85 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.141 H 274.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#2A2F85
RGBrgb(42, 47, 133)
HSLhsl(237, 52%, 34%)
HSVhsv(237, 68%, 52%)
CMYKcmyk(68.4%, 64.7%, 0%, 47.8%)
CIE-LABlab(24.38, 27.26, -48.92)
CIE-LCHlch(24.38, 56.01, 299.13°)
OKLaboklab(35.91% 0.0104 -0.1411)
OKLCHoklch(35.91% 0.141 274.2)
XYZxyz(6.2036, 4.2182, 22.6730)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F85 #85802A
analogous
#2A5D85 #2A2F85 #532A85
triadic
#2A2F85 #852A2F #2F852A
tetradic
#2A2F85 #852A5D #85802A #2A8553
square
#2A2F85 #852A5D #85802A #2A8553
split-complementary
#2A2F85 #85532A #5D852A
monochromatic
#0D0E28 #1B1F56 #2A2F85 #393FB4 #5D63CC

Accessibility & contrast

On white

11.39
#2A2F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2A2F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F85
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F85#FFFFFF#000000##FFFFFF
##2A2F851.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E88
Deuteranopia (green-blind)
#003683
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2f85;
/* rgb */ color: rgb(42, 47, 133);
/* oklch */ color: oklch(35.9% 0.141 274.2);
Tailwind
colors: {
  custom: {
    50: '#7067a9',
    500: '#2a2f85',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f85;
$custom-light: #7067a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f85",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 133
  },
  "hsl": {
    "h": 236.703,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35912,
    "c": 0.14146,
    "h": 274.2
  },
  "luminance": 0.04219
}

Semantic roles & 50–950 ramp

primary
#2A2F85
secondary
#B2AD59
accent
#D44CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A2F85

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

Preview Lab → · Contrast checker → · Palette generator →

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