#2A457F#2A457F

#2A457F is a dark, moderate blue. Relative luminance 0.063; OKLCH L 40.1% C 0.103 H 263.6°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#2A457F
RGBrgb(42, 69, 127)
HSLhsl(221, 50%, 33%)
HSVhsv(221, 67%, 50%)
CMYKcmyk(66.9%, 45.7%, 0%, 50.2%)
CIE-LABlab(30.11, 9.96, -35.91)
CIE-LCHlch(30.11, 37.27, 285.50°)
OKLaboklab(40.08% -0.0114 -0.1025)
OKLCHoklch(40.08% 0.103 263.6)
XYZxyz(6.9124, 6.2801, 20.9225)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A457F #7F642A
analogous
#2A6F7F #2A457F #392A7F
triadic
#2A457F #7F2A45 #457F2A
tetradic
#2A457F #7F2A6F #7F642A #2A7F39
square
#2A457F #7F2A6F #7F642A #2A7F39
split-complementary
#2A457F #7F392A #6F7F2A
monochromatic
#0C1323 #1B2C51 #2A457F #395EAD #5B7EC9

Accessibility & contrast

On white

9.31
#2A457F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#2A457F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A457F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A457F#FFFFFF#000000##FFFFFF
##2A457F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B81
Deuteranopia (green-blind)
#1C437E
Tritanopia (blue-blind)
#00525B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2a457f;
/* rgb */ color: rgb(42, 69, 127);
/* oklch */ color: oklch(40.1% 0.103 263.6);
Tailwind
colors: {
  custom: {
    50: '#6d78a4',
    500: '#2a457f',
    950: '#000000',
  },
}
SCSS
$custom: #2a457f;
$custom-light: #6d78a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a457f",
  "rgb": {
    "r": 42,
    "g": 69,
    "b": 127
  },
  "hsl": {
    "h": 220.941,
    "s": 50.296,
    "l": 33.137
  },
  "oklch": {
    "l": 0.40083,
    "c": 0.10318,
    "h": 263.6
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#2A457F
secondary
#AE9257
accent
#AD4EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A457F

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

Preview Lab → · Contrast checker → · Palette generator →

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