#2F57BA#2F57BA

#2F57BA is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.6% C 0.163 H 264.5°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#2F57BA
RGBrgb(47, 87, 186)
HSLhsl(223, 60%, 46%)
HSVhsv(223, 75%, 73%)
CMYKcmyk(74.7%, 53.2%, 0%, 27.1%)
CIE-LABlab(39.52, 21.18, -56.33)
CIE-LCHlch(39.52, 60.18, 290.60°)
OKLaboklab(48.62% -0.0156 -0.1622)
OKLCHoklch(48.62% 0.163 264.5)
XYZxyz(13.4403, 10.9644, 47.8529)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57BA #BA922F
analogous
#2F9CBA #2F57BA #4C2FBA
triadic
#2F57BA #BA2F57 #57BA2F
tetradic
#2F57BA #BA2F9C #BA922F #2FBA4C
square
#2F57BA #BA2F9C #BA922F #2FBA4C
split-complementary
#2F57BA #BA4C2F #9CBA2F
monochromatic
#162958 #234089 #2F57BA #5378D3 #849EE0

Accessibility & contrast

On white

6.58
#2F57BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2F57BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57BA
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57BA#FFFFFF#000000##FFFFFF
##2F57BA1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D64BD
Deuteranopia (green-blind)
#0057B8
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f57ba;
/* rgb */ color: rgb(47, 87, 186);
/* oklch */ color: oklch(48.6% 0.163 264.5);
Tailwind
colors: {
  custom: {
    50: '#7b85cf',
    500: '#2f57ba',
    950: '#000000',
  },
}
SCSS
$custom: #2f57ba;
$custom-light: #7b85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57ba",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 222.734,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.48616,
    "c": 0.16296,
    "h": 264.5
  },
  "luminance": 0.10966
}

Semantic roles & 50–950 ramp

primary
#2F57BA
secondary
#C9B37C
accent
#B545E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2F57BA

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

Preview Lab → · Contrast checker → · Palette generator →

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