#2F57B7#2F57B7

#2F57B7 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.4% C 0.159 H 264.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#2F57B7
RGBrgb(47, 87, 183)
HSLhsl(222, 59%, 45%)
HSVhsv(222, 74%, 72%)
CMYKcmyk(74.3%, 52.5%, 0%, 28.2%)
CIE-LABlab(39.31, 20.05, -54.92)
CIE-LCHlch(39.31, 58.47, 290.05°)
OKLaboklab(48.39% -0.0159 -0.1581)
OKLCHoklch(48.39% 0.159 264.2)
XYZxyz(13.1247, 10.8382, 46.1908)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57B7 #B78F2F
analogous
#2F9BB7 #2F57B7 #4B2FB7
triadic
#2F57B7 #B72F57 #57B72F
tetradic
#2F57B7 #B72F9B #B78F2F #2FB74B
square
#2F57B7 #B72F9B #B78F2F #2FB74B
split-complementary
#2F57B7 #B74B2F #9BB72F
monochromatic
#162956 #224086 #2F57B7 #5177D2 #829DDF

Accessibility & contrast

On white

6.63
#2F57B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#2F57B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57B7
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57B7#FFFFFF#000000##FFFFFF
##2F57B71.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1563BA
Deuteranopia (green-blind)
#0057B5
Tritanopia (blue-blind)
#006E7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f57b7;
/* rgb */ color: rgb(47, 87, 183);
/* oklch */ color: oklch(48.4% 0.159 264.2);
Tailwind
colors: {
  custom: {
    50: '#7a85cd',
    500: '#2f57b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f57b7;
$custom-light: #7a85cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57b7",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 183
  },
  "hsl": {
    "h": 222.353,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.48386,
    "c": 0.15886,
    "h": 264.2
  },
  "luminance": 0.1084
}

Semantic roles & 50–950 ramp

primary
#2F57B7
secondary
#C8B17A
accent
#B445E2
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #2F57B7

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

Preview Lab → · Contrast checker → · Palette generator →

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