#2F4CC1#2F4CC1

#2F4CC1 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.0% C 0.186 H 267.7°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#2F4CC1
RGBrgb(47, 76, 193)
HSLhsl(228, 61%, 47%)
HSVhsv(228, 76%, 76%)
CMYKcmyk(75.6%, 60.6%, 0%, 24.3%)
CIE-LABlab(37.16, 30.98, -64.28)
CIE-LCHlch(37.16, 71.35, 295.73°)
OKLaboklab(47.01% -0.0073 -0.1857)
OKLCHoklch(47.01% 0.186 267.7)
XYZxyz(13.3790, 9.6220, 51.5939)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4CC1 #C1A42F
analogous
#2F95C1 #2F4CC1 #5B2FC1
triadic
#2F4CC1 #C12F4C #4CC12F
tetradic
#2F4CC1 #C12F95 #C1A42F #2FC15B
square
#2F4CC1 #C12F95 #C1A42F #2FC15B
split-complementary
#2F4CC1 #C15B2F #95C12F
monochromatic
#17255F #233990 #2F4CC1 #5770D6 #889AE2

Accessibility & contrast

On white

7.18
#2F4CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2F4CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4CC1
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4CC1#FFFFFF#000000##FFFFFF
##2F4CC11.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#0051BF
Tritanopia (blue-blind)
#006A7F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2f4cc1;
/* rgb */ color: rgb(47, 76, 193);
/* oklch */ color: oklch(47.0% 0.186 267.7);
Tailwind
colors: {
  custom: {
    50: '#7d7dd5',
    500: '#2f4cc1',
    950: '#000000',
  },
}
SCSS
$custom: #2f4cc1;
$custom-light: #7d7dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4cc1",
  "rgb": {
    "r": 47,
    "g": 76,
    "b": 193
  },
  "hsl": {
    "h": 228.082,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4701,
    "c": 0.18585,
    "h": 267.7
  },
  "luminance": 0.09623
}

Semantic roles & 50–950 ramp

primary
#2F4CC1
secondary
#CCBD80
accent
#C444E4
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2F4CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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