#2A3E8D#2A3E8D

#2A3E8D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.133 H 268.8°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#2A3E8D
RGBrgb(42, 62, 141)
HSLhsl(228, 54%, 36%)
HSVhsv(228, 70%, 55%)
CMYKcmyk(70.2%, 56%, 0%, 44.7%)
CIE-LABlab(29.06, 20.09, -46.29)
CIE-LCHlch(29.06, 50.46, 293.47°)
OKLaboklab(39.6% -0.0027 -0.1332)
OKLCHoklch(39.6% 0.133 268.8)
XYZxyz(7.4835, 5.8598, 25.9308)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E8D #8D792A
analogous
#2A6F8D #2A3E8D #472A8D
triadic
#2A3E8D #8D2A3E #3E8D2A
tetradic
#2A3E8D #8D2A6F #8D792A #2A8D47
square
#2A3E8D #8D2A6F #8D792A #2A8D47
split-complementary
#2A3E8D #8D472A #6F8D2A
monochromatic
#0E152F #1C295E #2A3E8D #3853BC #6178D0

Accessibility & contrast

On white

9.67
#2A3E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A3E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E8D
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E8D#FFFFFF#000000##FFFFFF
##2A3E8D1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3e8d;
/* rgb */ color: rgb(42, 62, 141);
/* oklch */ color: oklch(39.6% 0.133 268.8);
Tailwind
colors: {
  custom: {
    50: '#7072af',
    500: '#2a3e8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e8d;
$custom-light: #7072af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e8d",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 141
  },
  "hsl": {
    "h": 227.879,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39595,
    "c": 0.13319,
    "h": 268.8
  },
  "luminance": 0.05861
}

Semantic roles & 50–950 ramp

primary
#2A3E8D
secondary
#B6A45D
accent
#C04ADD
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A3E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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