#2A3F8D#2A3F8D

#2A3F8D is a dark, vivid blue. Relative luminance 0.060; OKLCH L 39.8% C 0.132 H 268.4°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#2A3F8D
RGBrgb(42, 63, 141)
HSLhsl(227, 54%, 36%)
HSVhsv(227, 70%, 55%)
CMYKcmyk(70.2%, 55.3%, 0%, 44.7%)
CIE-LABlab(29.34, 19.41, -45.83)
CIE-LCHlch(29.34, 49.78, 292.95°)
OKLaboklab(39.81% -0.0036 -0.1318)
OKLCHoklch(39.81% 0.132 268.4)
XYZxyz(7.5384, 5.9696, 25.9491)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F8D #8D782A
analogous
#2A708D #2A3F8D #462A8D
triadic
#2A3F8D #8D2A3F #3F8D2A
tetradic
#2A3F8D #8D2A70 #8D782A #2A8D46
square
#2A3F8D #8D2A70 #8D782A #2A8D46
split-complementary
#2A3F8D #8D462A #708D2A
monochromatic
#0E152F #1C2A5E #2A3F8D #3854BC #6179D0

Accessibility & contrast

On white

9.57
#2A3F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A3F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F8D
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F8D#FFFFFF#000000##FFFFFF
##2A3F8D1.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044A90
Deuteranopia (green-blind)
#00418B
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a3f8d;
/* rgb */ color: rgb(42, 63, 141);
/* oklch */ color: oklch(39.8% 0.132 268.4);
Tailwind
colors: {
  custom: {
    50: '#7073af',
    500: '#2a3f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f8d;
$custom-light: #7073af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f8d",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 141
  },
  "hsl": {
    "h": 227.273,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39806,
    "c": 0.13186,
    "h": 268.4
  },
  "luminance": 0.0597
}

Semantic roles & 50–950 ramp

primary
#2A3F8D
secondary
#B6A35D
accent
#BE4ADD
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A3F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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