#2F57B9#2F57B9

#2F57B9 is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.5% C 0.162 H 264.4°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#2F57B9
RGBrgb(47, 87, 185)
HSLhsl(223, 59%, 45%)
HSVhsv(223, 75%, 73%)
CMYKcmyk(74.6%, 53%, 0%, 27.5%)
CIE-LABlab(39.45, 20.80, -55.86)
CIE-LCHlch(39.45, 59.61, 290.42°)
OKLaboklab(48.54% -0.0157 -0.1608)
OKLCHoklch(48.54% 0.162 264.4)
XYZxyz(13.3343, 10.9220, 47.2949)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F57B9 #B9912F
analogous
#2F9CB9 #2F57B9 #4C2FB9
triadic
#2F57B9 #B92F57 #57B92F
tetradic
#2F57B9 #B92F9C #B9912F #2FB94C
square
#2F57B9 #B92F9C #B9912F #2FB94C
split-complementary
#2F57B9 #B94C2F #9CB92F
monochromatic
#162957 #234088 #2F57B9 #5277D3 #839EDF

Accessibility & contrast

On white

6.59
#2F57B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2F57B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F57B9
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F57B9#FFFFFF#000000##FFFFFF
##2F57B91.006.593.186.59
#FFFFFF6.591.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1064BC
Deuteranopia (green-blind)
#0057B7
Tritanopia (blue-blind)
#006F7F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2f57b9;
/* rgb */ color: rgb(47, 87, 185);
/* oklch */ color: oklch(48.5% 0.162 264.4);
Tailwind
colors: {
  custom: {
    50: '#7b85cf',
    500: '#2f57b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f57b9;
$custom-light: #7b85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f57b9",
  "rgb": {
    "r": 47,
    "g": 87,
    "b": 185
  },
  "hsl": {
    "h": 222.609,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.48539,
    "c": 0.1616,
    "h": 264.4
  },
  "luminance": 0.10924
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F57B9

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

Preview Lab → · Contrast checker → · Palette generator →

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