#2A3F7B#2A3F7B

#2A3F7B is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.4% C 0.105 H 266.9°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#2A3F7B
RGBrgb(42, 63, 123)
HSLhsl(224, 49%, 32%)
HSVhsv(224, 66%, 48%)
CMYKcmyk(65.9%, 48.8%, 0%, 51.8%)
CIE-LABlab(28.05, 12.54, -36.70)
CIE-LCHlch(28.05, 38.79, 288.86°)
OKLaboklab(38.42% -0.0057 -0.1049)
OKLCHoklch(38.42% 0.105 266.9)
XYZxyz(6.3063, 5.4768, 19.4598)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A3F7B #7B662A
analogous
#2A687B #2A3F7B #3D2A7B
triadic
#2A3F7B #7B2A3F #3F7B2A
tetradic
#2A3F7B #7B2A68 #7B662A #2A7B3D
square
#2A3F7B #7B2A68 #7B662A #2A7B3D
split-complementary
#2A3F7B #7B3D2A #687B2A
monochromatic
#0B1020 #1A284D #2A3F7B #3A56A9 #5975C6

Accessibility & contrast

On white

10.02
#2A3F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2A3F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A3F7B
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A3F7B#FFFFFF#000000##FFFFFF
##2A3F7B1.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21467D
Deuteranopia (green-blind)
#123F7A
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2a3f7b;
/* rgb */ color: rgb(42, 63, 123);
/* oklch */ color: oklch(38.4% 0.105 266.9);
Tailwind
colors: {
  custom: {
    50: '#6c73a1',
    500: '#2a3f7b',
    950: '#000000',
  },
}
SCSS
$custom: #2a3f7b;
$custom-light: #6c73a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a3f7b",
  "rgb": {
    "r": 42,
    "g": 63,
    "b": 123
  },
  "hsl": {
    "h": 224.444,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.38422,
    "c": 0.1051,
    "h": 266.9
  },
  "luminance": 0.05477
}

Semantic roles & 50–950 ramp

primary
#2A3F7B
secondary
#AC9555
accent
#B54FD9
background
#F6F6FA
surface
#ECECF3
border
#C7C7CD
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #2A3F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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