#2A3E8B#2A3E8B

#2A3E8B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.130 H 268.7°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#2A3E8B
RGBrgb(42, 62, 139)
HSLhsl(228, 54%, 35%)
HSVhsv(228, 70%, 55%)
CMYKcmyk(69.8%, 55.4%, 0%, 45.5%)
CIE-LABlab(28.90, 19.33, -45.30)
CIE-LCHlch(28.90, 49.25, 293.11°)
OKLaboklab(39.43% -0.0028 -0.1302)
OKLCHoklch(39.43% 0.13 268.7)
XYZxyz(7.3361, 5.8009, 25.1542)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E8B #8B772A
analogous
#2A6E8B #2A3E8B #462A8B
triadic
#2A3E8B #8B2A3E #3E8B2A
tetradic
#2A3E8B #8B2A6E #8B772A #2A8B46
square
#2A3E8B #8B2A6E #8B772A #2A8B46
split-complementary
#2A3E8B #8B462A #6E8B2A
monochromatic
#0E142D #1C295C #2A3E8B #3853BA #6077CF

Accessibility & contrast

On white

9.72
#2A3E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#2A3E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E8B
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E8B#FFFFFF#000000##FFFFFF
##2A3E8B1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04498E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3e8b;
/* rgb */ color: rgb(42, 62, 139);
/* oklch */ color: oklch(39.4% 0.130 268.7);
Tailwind
colors: {
  custom: {
    50: '#7072ad',
    500: '#2a3e8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e8b;
$custom-light: #7072ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e8b",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 139
  },
  "hsl": {
    "h": 227.629,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39433,
    "c": 0.13028,
    "h": 268.7
  },
  "luminance": 0.05802
}

Semantic roles & 50–950 ramp

primary
#2A3E8B
secondary
#B5A35C
accent
#BF4BDD
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A3E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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