#2A3E88#2A3E88

#2A3E88 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.126 H 268.6°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#2A3E88
RGBrgb(42, 62, 136)
HSLhsl(227, 53%, 35%)
HSVhsv(227, 69%, 53%)
CMYKcmyk(69.1%, 54.4%, 0%, 46.7%)
CIE-LABlab(28.68, 18.19, -43.80)
CIE-LCHlch(28.68, 47.43, 292.55°)
OKLaboklab(39.19% -0.0031 -0.1259)
OKLCHoklch(39.19% 0.126 268.6)
XYZxyz(7.1199, 5.7144, 24.0155)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E88 #88742A
analogous
#2A6D88 #2A3E88 #452A88
triadic
#2A3E88 #882A3E #3E882A
tetradic
#2A3E88 #882A6D #88742A #2A8845
square
#2A3E88 #882A6D #88742A #2A8845
split-complementary
#2A3E88 #88452A #6D882A
monochromatic
#0D132A #1C2959 #2A3E88 #3853B7 #5F76CE

Accessibility & contrast

On white

9.80
#2A3E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2A3E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E88
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E88#FFFFFF#000000##FFFFFF
##2A3E881.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C488B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#00505C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3e88;
/* rgb */ color: rgb(42, 62, 136);
/* oklch */ color: oklch(39.2% 0.126 268.6);
Tailwind
colors: {
  custom: {
    50: '#6f72ab',
    500: '#2a3e88',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e88;
$custom-light: #6f72ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e88",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 136
  },
  "hsl": {
    "h": 227.234,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.39193,
    "c": 0.1259,
    "h": 268.6
  },
  "luminance": 0.05715
}

Semantic roles & 50–950 ramp

primary
#2A3E88
secondary
#B3A05B
accent
#BD4CDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A3E88

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

Preview Lab → · Contrast checker → · Palette generator →

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