#2A57C7#2A57C7

#2A57C7 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.5% C 0.182 H 264.2°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#2A57C7
RGBrgb(42, 87, 199)
HSLhsl(223, 65%, 47%)
HSVhsv(223, 79%, 78%)
CMYKcmyk(78.9%, 56.3%, 0%, 22%)
CIE-LABlab(40.30, 25.54, -62.66)
CIE-LCHlch(40.30, 67.66, 292.18°)
OKLaboklab(49.45% -0.0184 -0.1809)
OKLCHoklch(49.45% 0.182 264.2)
XYZxyz(14.6682, 11.4304, 55.4550)
Luminance0.1143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A57C7 #C79A2A
analogous
#2AA5C7 #2A57C7 #4C2AC7
triadic
#2A57C7 #C72A57 #57C72A
tetradic
#2A57C7 #C72AA5 #C79A2A #2AC74C
square
#2A57C7 #C72AA5 #C79A2A #2AC74C
split-complementary
#2A57C7 #C74C2A #A5C72A
monochromatic
#152B62 #1F4194 #2A57C7 #537ADB #86A1E5

Accessibility & contrast

On white

6.39
#2A57C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#2A57C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A57C7
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A57C7#FFFFFF#000000##FFFFFF
##2A57C71.006.393.296.39
#FFFFFF6.391.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#0058C5
Tritanopia (blue-blind)
#007386
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2a57c7;
/* rgb */ color: rgb(42, 87, 199);
/* oklch */ color: oklch(49.5% 0.182 264.2);
Tailwind
colors: {
  custom: {
    50: '#7c85d9',
    500: '#2a57c7',
    950: '#000000',
  },
}
SCSS
$custom: #2a57c7;
$custom-light: #7c85d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a57c7",
  "rgb": {
    "r": 42,
    "g": 87,
    "b": 199
  },
  "hsl": {
    "h": 222.803,
    "s": 65.145,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49454,
    "c": 0.18182,
    "h": 264.2
  },
  "luminance": 0.11432
}

Semantic roles & 50–950 ramp

primary
#2A57C7
secondary
#CFB87E
accent
#B840E8
background
#F8F8FD
surface
#EFEFFB
border
#CACAD4
text
#0B0B15
muted
#7C7C83

Preview Lab

Preview with #2A57C7

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

Preview Lab → · Contrast checker → · Palette generator →

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