#2A3E8A#2A3E8A

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

Color values

HEX#2A3E8A
RGBrgb(42, 62, 138)
HSLhsl(228, 53%, 35%)
HSVhsv(228, 70%, 54%)
CMYKcmyk(69.6%, 55.1%, 0%, 45.9%)
CIE-LABlab(28.83, 18.95, -44.80)
CIE-LCHlch(28.83, 48.64, 292.93°)
OKLaboklab(39.35% -0.0029 -0.1288)
OKLCHoklch(39.35% 0.129 268.7)
XYZxyz(7.2633, 5.7718, 24.7711)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3E8A #8A762A
analogous
#2A6E8A #2A3E8A #462A8A
triadic
#2A3E8A #8A2A3E #3E8A2A
tetradic
#2A3E8A #8A2A6E #8A762A #2A8A46
square
#2A3E8A #8A2A6E #8A762A #2A8A46
split-complementary
#2A3E8A #8A462A #6E8A2A
monochromatic
#0D142C #1C295B #2A3E8A #3853B9 #6077CF

Accessibility & contrast

On white

9.75
#2A3E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A3E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3E8A
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3E8A#FFFFFF#000000##FFFFFF
##2A3E8A1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07498D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#00505D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a3e8a;
/* rgb */ color: rgb(42, 62, 138);
/* oklch */ color: oklch(39.4% 0.129 268.7);
Tailwind
colors: {
  custom: {
    50: '#7072ad',
    500: '#2a3e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a3e8a;
$custom-light: #7072ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3e8a",
  "rgb": {
    "r": 42,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 227.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39352,
    "c": 0.12882,
    "h": 268.7
  },
  "luminance": 0.05772
}

Semantic roles & 50–950 ramp

primary
#2A3E8A
secondary
#B4A25B
accent
#BE4BDD
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A3E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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