#2F57AA#2F57AA

#2F57AA is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.4% C 0.141 H 262.8°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#2F57AA
RGBrgb(47, 87, 170)
HSLhsl(220, 57%, 43%)
HSVhsv(220, 72%, 67%)
CMYKcmyk(72.4%, 48.8%, 0%, 33.3%)
CIE-LABlab(38.41, 15.13, -48.69)
CIE-LCHlch(38.41, 50.99, 287.26°)
OKLaboklab(47.42% -0.0175 -0.1397)
OKLCHoklch(47.42% 0.141 262.8)
XYZxyz(11.8336, 10.3218, 39.3911)
Luminance0.1032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57AA #AA822F
analogous
#2F94AA #2F57AA #452FAA
triadic
#2F57AA #AA2F57 #57AA2F
tetradic
#2F57AA #AA2F94 #AA822F #2FAA45
square
#2F57AA #AA2F94 #AA822F #2FAA45
split-complementary
#2F57AA #AA452F #94AA2F
monochromatic
#14264A #223E7A #2F57AA #4974CD #7999DA

Accessibility & contrast

On white

6.85
#2F57AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#2F57AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57AA
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57AA#FFFFFF#000000##FFFFFF
##2F57AA1.006.853.066.85
#FFFFFF6.851.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2960AD
Deuteranopia (green-blind)
#0355A8
Tritanopia (blue-blind)
#006B78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2f57aa;
/* rgb */ color: rgb(47, 87, 170);
/* oklch */ color: oklch(47.4% 0.141 262.8);
Tailwind
colors: {
  custom: {
    50: '#7785c4',
    500: '#2f57aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f57aa;
$custom-light: #7785c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57aa",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 170
  },
  "hsl": {
    "h": 220.488,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47421,
    "c": 0.14083,
    "h": 262.8
  },
  "luminance": 0.10323
}

Semantic roles & 50–950 ramp

primary
#2F57AA
secondary
#C2A872
accent
#AE48E0
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2F57AA

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

Preview Lab → · Contrast checker → · Palette generator →

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