#2F4ABC#2F4ABC

#2F4ABC is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.2% C 0.182 H 268.1°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#2F4ABC
RGBrgb(47, 74, 188)
HSLhsl(229, 60%, 46%)
HSVhsv(229, 75%, 74%)
CMYKcmyk(75%, 60.6%, 0%, 26.3%)
CIE-LABlab(36.24, 30.43, -62.85)
CIE-LCHlch(36.24, 69.83, 295.83°)
OKLaboklab(46.2% -0.006 -0.1815)
OKLCHoklch(46.2% 0.182 268.1)
XYZxyz(12.6950, 9.1314, 48.6607)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F4ABC #BCA12F
analogous
#2F90BC #2F4ABC #5B2FBC
triadic
#2F4ABC #BC2F4A #4ABC2F
tetradic
#2F4ABC #BC2F90 #BCA12F #2FBC5B
square
#2F4ABC #BC2F90 #BCA12F #2FBC5B
split-complementary
#2F4ABC #BC5B2F #90BC2F
monochromatic
#17235A #23378B #2F4ABC #546DD4 #8596E0

Accessibility & contrast

On white

7.43
#2F4ABC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2F4ABC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F4ABC
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F4ABC#FFFFFF#000000##FFFFFF
##2F4ABC1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#00677C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f4abc;
/* rgb */ color: rgb(47, 74, 188);
/* oklch */ color: oklch(46.2% 0.182 268.1);
Tailwind
colors: {
  custom: {
    50: '#7c7cd1',
    500: '#2f4abc',
    950: '#000000',
  },
}
SCSS
$custom: #2f4abc;
$custom-light: #7c7cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f4abc",
  "rgb": {
    "r": 47,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 228.511,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.46199,
    "c": 0.18165,
    "h": 268.1
  },
  "luminance": 0.09133
}

Semantic roles & 50–950 ramp

primary
#2F4ABC
secondary
#CABB7D
accent
#C545E3
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0914
muted
#7C7B83

Preview Lab

Preview with #2F4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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