#2A2D88#2A2D88

#2A2D88 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.8% C 0.148 H 274.6°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#2A2D88
RGBrgb(42, 45, 136)
HSLhsl(238, 53%, 35%)
HSVhsv(238, 69%, 53%)
CMYKcmyk(69.1%, 66.9%, 0%, 46.7%)
CIE-LABlab(24.15, 29.68, -51.18)
CIE-LCHlch(24.15, 59.16, 300.11°)
OKLaboklab(35.83% 0.0118 -0.1477)
OKLCHoklch(35.83% 0.148 274.6)
XYZxyz(6.3357, 4.1460, 23.7542)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A2D88 #88852A
analogous
#2A5C88 #2A2D88 #562A88
triadic
#2A2D88 #882A2D #2D882A
tetradic
#2A2D88 #882A5C #88852A #2A8856
square
#2A2D88 #882A5C #88852A #2A8856
split-complementary
#2A2D88 #88562A #5C882A
monochromatic
#0D0E2A #1C1E59 #2A2D88 #383CB7 #5F62CE

Accessibility & contrast

On white

11.48
#2A2D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A2D88
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A2D88#FFFFFF#000000##FFFFFF
##2A2D881.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003586
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2a2d88;
/* rgb */ color: rgb(42, 45, 136);
/* oklch */ color: oklch(35.8% 0.148 274.6);
Tailwind
colors: {
  custom: {
    50: '#7166ac',
    500: '#2a2d88',
    950: '#000000',
  },
}
SCSS
$custom: #2a2d88;
$custom-light: #7166ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a2d88",
  "rgb": {
    "r": 42,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 238.085,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35826,
    "c": 0.14817,
    "h": 274.6
  },
  "luminance": 0.04147
}

Semantic roles & 50–950 ramp

primary
#2A2D88
secondary
#B3B05B
accent
#D84CDC
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2A2D88

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

Preview Lab → · Contrast checker → · Palette generator →

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