#2F5CDB#2F5CDB

#2F5CDB is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 52.3% C 0.201 H 265.1°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#2F5CDB
RGBrgb(47, 92, 219)
HSLhsl(224, 70%, 52%)
HSVhsv(224, 79%, 86%)
CMYKcmyk(78.5%, 58%, 0%, 14.1%)
CIE-LABlab(43.32, 30.29, -69.22)
CIE-LCHlch(43.32, 75.56, 293.63°)
OKLaboklab(52.25% -0.0171 -0.2)
OKLCHoklch(52.25% 0.201 265.1)
XYZxyz(17.7811, 13.3710, 68.6478)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5CDB #DBAE2F
analogous
#2FB2DB #2F5CDB #582FDB
triadic
#2F5CDB #DB2F5C #5CDB2F
tetradic
#2F5CDB #DB2FB2 #DBAE2F #2FDB58
square
#2F5CDB #DB2FB2 #DBAE2F #2FDB58
split-complementary
#2F5CDB #DB582F #B2DB2F
monochromatic
#15307A #1E44AF #2F5CDB #6385E4 #97AEED

Accessibility & contrast

On white

5.71
#2F5CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#2F5CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5CDB
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5CDB#FFFFFF#000000##FFFFFF
##2F5CDB1.005.713.675.71
#FFFFFF5.711.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#005FD9
Tritanopia (blue-blind)
#007C92
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f5cdb;
/* rgb */ color: rgb(47, 92, 219);
/* oklch */ color: oklch(52.3% 0.201 265.1);
Tailwind
colors: {
  custom: {
    50: '#8289e7',
    500: '#2f5cdb',
    950: '#000000',
  },
}
SCSS
$custom: #2f5cdb;
$custom-light: #8289e7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5cdb",
  "rgb": {
    "r": 47,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 224.302,
    "s": 70.492,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52254,
    "c": 0.20075,
    "h": 265.1
  },
  "luminance": 0.13373
}

Semantic roles & 50–950 ramp

primary
#2F5CDB
secondary
#D8C58D
accent
#BF3BED
background
#F8F8FE
surface
#F0F0FD
border
#CBCBD5
text
#0C0B16
muted
#7D7C84

Preview Lab

Preview with #2F5CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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