#2A3A88#2A3A88

#2A3A88 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 38.4% C 0.131 H 270.3°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#2A3A88
RGBrgb(42, 58, 136)
HSLhsl(230, 53%, 35%)
HSVhsv(230, 69%, 53%)
CMYKcmyk(69.1%, 57.4%, 0%, 46.7%)
CIE-LABlab(27.56, 20.93, -45.62)
CIE-LCHlch(27.56, 50.19, 294.64°)
OKLaboklab(38.35% 0.0007 -0.1312)
OKLCHoklch(38.35% 0.131 270.3)
XYZxyz(6.9103, 5.2953, 23.9457)
Luminance0.0530 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A88 #88782A
analogous
#2A6988 #2A3A88 #492A88
triadic
#2A3A88 #882A3A #3A882A
tetradic
#2A3A88 #882A69 #88782A #2A8849
square
#2A3A88 #882A69 #88782A #2A8849
split-complementary
#2A3A88 #88492A #69882A
monochromatic
#0D122A #1C2659 #2A3A88 #384EB7 #5F72CE

Accessibility & contrast

On white

10.20
#2A3A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2A3A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A88
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A88#FFFFFF#000000##FFFFFF
##2A3A881.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3a88;
/* rgb */ color: rgb(42, 58, 136);
/* oklch */ color: oklch(38.4% 0.131 270.3);
Tailwind
colors: {
  custom: {
    50: '#706fab',
    500: '#2a3a88',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a88;
$custom-light: #706fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a88",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 136
  },
  "hsl": {
    "h": 229.787,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3835,
    "c": 0.13125,
    "h": 270.3
  },
  "luminance": 0.05296
}

Semantic roles & 50–950 ramp

primary
#2A3A88
secondary
#B3A45B
accent
#C44CDC
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3A88

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

Preview Lab → · Contrast checker → · Palette generator →

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