#2A3F8B#2A3F8B

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

Color values

HEX#2A3F8B
RGBrgb(42, 63, 139)
HSLhsl(227, 54%, 35%)
HSVhsv(227, 70%, 55%)
CMYKcmyk(69.8%, 54.7%, 0%, 45.5%)
CIE-LABlab(29.19, 18.65, -44.84)
CIE-LCHlch(29.19, 48.57, 292.58°)
OKLaboklab(39.65% -0.0038 -0.1289)
OKLCHoklch(39.65% 0.129 268.3)
XYZxyz(7.3910, 5.9106, 25.1724)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F8B #8B762A
analogous
#2A6F8B #2A3F8B #452A8B
triadic
#2A3F8B #8B2A3F #3F8B2A
tetradic
#2A3F8B #8B2A6F #8B762A #2A8B45
square
#2A3F8B #8B2A6F #8B762A #2A8B45
split-complementary
#2A3F8B #8B452A #6F8B2A
monochromatic
#0E142D #1C2A5C #2A3F8B #3854BA #6078CF

Accessibility & contrast

On white

9.62
#2A3F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A3F8B
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F8B#FFFFFF#000000##FFFFFF
##2A3F8B1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a3f8b;
/* rgb */ color: rgb(42, 63, 139);
/* oklch */ color: oklch(39.6% 0.129 268.3);
Tailwind
colors: {
  custom: {
    50: '#7073ad',
    500: '#2a3f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f8b;
$custom-light: #7073ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f8b",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 139
  },
  "hsl": {
    "h": 227.01,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39645,
    "c": 0.12896,
    "h": 268.3
  },
  "luminance": 0.05911
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A3F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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