#2A2F83#2A2F83

#2A2F83 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.139 H 274.3°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#2A2F83
RGBrgb(42, 47, 131)
HSLhsl(237, 51%, 34%)
HSVhsv(237, 68%, 51%)
CMYKcmyk(67.9%, 64.1%, 0%, 48.6%)
CIE-LABlab(24.20, 26.53, -47.96)
CIE-LCHlch(24.20, 54.80, 298.95°)
OKLaboklab(35.73% 0.0105 -0.1382)
OKLCHoklch(35.73% 0.139 274.3)
XYZxyz(6.0667, 4.1634, 21.9522)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2F83 #837E2A
analogous
#2A5C83 #2A2F83 #522A83
triadic
#2A2F83 #832A2F #2F832A
tetradic
#2A2F83 #832A5C #837E2A #2A8352
square
#2A2F83 #832A5C #837E2A #2A8352
split-complementary
#2A2F83 #83522A #5C832A
monochromatic
#0C0E26 #1B1E55 #2A2F83 #3940B1 #5D63CB

Accessibility & contrast

On white

11.46
#2A2F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2A2F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A2F83
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2F83#FFFFFF#000000##FFFFFF
##2A2F831.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E86
Deuteranopia (green-blind)
#003681
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2a2f83;
/* rgb */ color: rgb(42, 47, 131);
/* oklch */ color: oklch(35.7% 0.139 274.3);
Tailwind
colors: {
  custom: {
    50: '#6f67a8',
    500: '#2a2f83',
    950: '#000000',
  },
}
SCSS
$custom: #2a2f83;
$custom-light: #6f67a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2f83",
  "rgb": {
    "r": 42,
    "g": 47,
    "b": 131
  },
  "hsl": {
    "h": 236.629,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35729,
    "c": 0.13864,
    "h": 274.3
  },
  "luminance": 0.04164
}

Semantic roles & 50–950 ramp

primary
#2A2F83
secondary
#B1AC58
accent
#D34DDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2A2F83

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

Preview Lab → · Contrast checker → · Palette generator →

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