#2F5AC2#2F5AC2

#2F5AC2 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.9% C 0.170 H 264.2°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#2F5AC2
RGBrgb(47, 90, 194)
HSLhsl(222, 61%, 47%)
HSVhsv(222, 76%, 76%)
CMYKcmyk(75.8%, 53.6%, 0%, 23.9%)
CIE-LABlab(40.91, 22.24, -58.75)
CIE-LCHlch(40.91, 62.81, 290.73°)
OKLaboklab(49.85% -0.0172 -0.1693)
OKLCHoklch(49.85% 0.17 264.2)
XYZxyz(14.5626, 11.8101, 52.5406)
Luminance0.1181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F5AC2 #C2972F
analogous
#2FA4C2 #2F5AC2 #4E2FC2
triadic
#2F5AC2 #C22F5A #5AC22F
tetradic
#2F5AC2 #C22FA4 #C2972F #2FC24E
square
#2F5AC2 #C22FA4 #C2972F #2FC24E
split-complementary
#2F5AC2 #C24E2F #A4C22F
monochromatic
#172C5F #234391 #2F5AC2 #587DD6 #89A3E2

Accessibility & contrast

On white

6.25
#2F5AC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#2F5AC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F5AC2
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F5AC2#FFFFFF#000000##FFFFFF
##2F5AC21.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0568C6
Deuteranopia (green-blind)
#005AC0
Tritanopia (blue-blind)
#007385
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #2f5ac2;
/* rgb */ color: rgb(47, 90, 194);
/* oklch */ color: oklch(49.9% 0.170 264.2);
Tailwind
colors: {
  custom: {
    50: '#7d88d5',
    500: '#2f5ac2',
    950: '#000000',
  },
}
SCSS
$custom: #2f5ac2;
$custom-light: #7d88d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f5ac2",
  "rgb": {
    "r": 47,
    "g": 90,
    "b": 194
  },
  "hsl": {
    "h": 222.449,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49853,
    "c": 0.17012,
    "h": 264.2
  },
  "luminance": 0.11812
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F5AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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