#2F5AC1#2F5AC1

#2F5AC1 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.8% C 0.169 H 264.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#2F5AC1
RGBrgb(47, 90, 193)
HSLhsl(222, 61%, 47%)
HSVhsv(222, 76%, 76%)
CMYKcmyk(75.6%, 53.4%, 0%, 24.3%)
CIE-LABlab(40.84, 21.86, -58.28)
CIE-LCHlch(40.84, 62.25, 290.56°)
OKLaboklab(49.78% -0.0173 -0.1679)
OKLCHoklch(49.78% 0.169 264.1)
XYZxyz(14.4507, 11.7653, 51.9511)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AC1 #C1962F
analogous
#2FA3C1 #2F5AC1 #4D2FC1
triadic
#2F5AC1 #C12F5A #5AC12F
tetradic
#2F5AC1 #C12FA3 #C1962F #2FC14D
square
#2F5AC1 #C12FA3 #C1962F #2FC14D
split-complementary
#2F5AC1 #C14D2F #A3C12F
monochromatic
#172C5F #234390 #2F5AC1 #577DD6 #88A3E2

Accessibility & contrast

On white

6.26
#2F5AC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#2F5AC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AC1
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AC1#FFFFFF#000000##FFFFFF
##2F5AC11.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0967C5
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5ac1;
/* rgb */ color: rgb(47, 90, 193);
/* oklch */ color: oklch(49.8% 0.169 264.1);
Tailwind
colors: {
  custom: {
    50: '#7c88d4',
    500: '#2f5ac1',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ac1;
$custom-light: #7c88d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ac1",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 193
  },
  "hsl": {
    "h": 222.329,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49776,
    "c": 0.16878,
    "h": 264.1
  },
  "luminance": 0.11767
}

Semantic roles & 50–950 ramp

primary
#2F5AC1
secondary
#CCB580
accent
#B544E4
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2F5AC1

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

Preview Lab → · Contrast checker → · Palette generator →

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