#2A3A8A#2A3A8A

#2A3A8A is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.5% C 0.134 H 270.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#2A3A8A
RGBrgb(42, 58, 138)
HSLhsl(230, 53%, 35%)
HSVhsv(230, 70%, 54%)
CMYKcmyk(69.6%, 58%, 0%, 45.9%)
CIE-LABlab(27.72, 21.68, -46.60)
CIE-LCHlch(27.72, 51.40, 294.95°)
OKLaboklab(38.52% 0.0007 -0.1341)
OKLCHoklch(38.52% 0.134 270.3)
XYZxyz(7.0538, 5.3527, 24.7013)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3A8A #8A7A2A
analogous
#2A6A8A #2A3A8A #4A2A8A
triadic
#2A3A8A #8A2A3A #3A8A2A
tetradic
#2A3A8A #8A2A6A #8A7A2A #2A8A4A
square
#2A3A8A #8A2A6A #8A7A2A #2A8A4A
split-complementary
#2A3A8A #8A4A2A #6A8A2A
monochromatic
#0D132C #1C265B #2A3A8A #384EB9 #6072CF

Accessibility & contrast

On white

10.14
#2A3A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2A3A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3A8A
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3A8A#FFFFFF#000000##FFFFFF
##2A3A8A1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#003D88
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2a3a8a;
/* rgb */ color: rgb(42, 58, 138);
/* oklch */ color: oklch(38.5% 0.134 270.3);
Tailwind
colors: {
  custom: {
    50: '#706fad',
    500: '#2a3a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a3a8a;
$custom-light: #706fad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3a8a",
  "rgb": {
    "r": 42,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 230,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.38517,
    "c": 0.13415,
    "h": 270.3
  },
  "luminance": 0.05353
}

Semantic roles & 50–950 ramp

primary
#2A3A8A
secondary
#B4A65B
accent
#C44BDD
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2A3A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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