#2A3F8A#2A3F8A

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

Color values

HEX#2A3F8A
RGBrgb(42, 63, 138)
HSLhsl(227, 53%, 35%)
HSVhsv(227, 70%, 54%)
CMYKcmyk(69.6%, 54.3%, 0%, 45.9%)
CIE-LABlab(29.11, 18.27, -44.34)
CIE-LCHlch(29.11, 47.96, 292.39°)
OKLaboklab(39.57% -0.0039 -0.1274)
OKLCHoklch(39.57% 0.127 268.3)
XYZxyz(7.3182, 5.8815, 24.7894)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F8A #8A752A
analogous
#2A6F8A #2A3F8A #452A8A
triadic
#2A3F8A #8A2A3F #3F8A2A
tetradic
#2A3F8A #8A2A6F #8A752A #2A8A45
square
#2A3F8A #8A2A6F #8A752A #2A8A45
split-complementary
#2A3F8A #8A452A #6F8A2A
monochromatic
#0D142C #1C2A5B #2A3F8A #3854B9 #6078CF

Accessibility & contrast

On white

9.65
#2A3F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#2A3F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F8A
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F8A#FFFFFF#000000##FFFFFF
##2A3F8A1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C498D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a3f8a;
/* rgb */ color: rgb(42, 63, 138);
/* oklch */ color: oklch(39.6% 0.127 268.3);
Tailwind
colors: {
  custom: {
    50: '#7073ad',
    500: '#2a3f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f8a;
$custom-light: #7073ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f8a",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 226.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.39565,
    "c": 0.12749,
    "h": 268.3
  },
  "luminance": 0.05882
}

Semantic roles & 50–950 ramp

primary
#2A3F8A
secondary
#B4A15B
accent
#BD4BDD
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A3F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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