#2F4FC1#2F4FC1

#2F4FC1 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.6% C 0.182 H 267.1°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2F4FC1
RGBrgb(47, 79, 193)
HSLhsl(227, 61%, 47%)
HSVhsv(227, 76%, 76%)
CMYKcmyk(75.6%, 59.1%, 0%, 24.3%)
CIE-LABlab(37.92, 29.03, -63.02)
CIE-LCHlch(37.92, 69.39, 294.73°)
OKLaboklab(47.58% -0.0094 -0.182)
OKLCHoklch(47.58% 0.182 267.1)
XYZxyz(13.5906, 10.0451, 51.6644)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4FC1 #C1A12F
analogous
#2F98C1 #2F4FC1 #582FC1
triadic
#2F4FC1 #C12F4F #4FC12F
tetradic
#2F4FC1 #C12F98 #C1A12F #2FC158
square
#2F4FC1 #C12F98 #C1A12F #2FC158
split-complementary
#2F4FC1 #C1582F #98C12F
monochromatic
#17275F #233B90 #2F4FC1 #5773D6 #889CE2

Accessibility & contrast

On white

6.98
#2F4FC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2F4FC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F4FC1
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4FC1#FFFFFF#000000##FFFFFF
##2F4FC11.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0053BF
Tritanopia (blue-blind)
#006C80
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2f4fc1;
/* rgb */ color: rgb(47, 79, 193);
/* oklch */ color: oklch(47.6% 0.182 267.1);
Tailwind
colors: {
  custom: {
    50: '#7d80d5',
    500: '#2f4fc1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4fc1;
$custom-light: #7d80d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4fc1",
  "rgb": {
    "r": 47,
    "g": 79,
    "b": 193
  },
  "hsl": {
    "h": 226.849,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47582,
    "c": 0.18224,
    "h": 267.1
  },
  "luminance": 0.10047
}

Semantic roles & 50–950 ramp

primary
#2F4FC1
secondary
#CCBB80
accent
#C144E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2F4FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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