#2F66B4#2F66B4

#2F66B4 is a mid, vivid blue. Relative luminance 0.134; OKLCH L 51.4% C 0.137 H 257.6°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#2F66B4
RGBrgb(47, 102, 180)
HSLhsl(215, 59%, 45%)
HSVhsv(215, 74%, 71%)
CMYKcmyk(73.9%, 43.3%, 0%, 29.4%)
CIE-LABlab(43.36, 9.19, -46.64)
CIE-LCHlch(43.36, 47.54, 281.14°)
OKLaboklab(51.43% -0.0292 -0.1334)
OKLCHoklch(51.43% 0.137 257.6)
XYZxyz(14.1589, 13.4008, 45.0116)
Luminance0.1340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F66B4 #B47D2F
analogous
#2FA9B4 #2F66B4 #3B2FB4
triadic
#2F66B4 #B42F66 #66B42F
tetradic
#2F66B4 #B42FA9 #B47D2F #2FB43B
square
#2F66B4 #B42FA9 #B47D2F #2FB43B
split-complementary
#2F66B4 #B43B2F #A9B42F
monochromatic
#162F53 #224B83 #2F66B4 #4F85D1 #80A7DE

Accessibility & contrast

On white

5.71
#2F66B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#2F66B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F66B4
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F66B4#FFFFFF#000000##FFFFFF
##2F66B41.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406DB7
Deuteranopia (green-blind)
#2761B2
Tritanopia (blue-blind)
#007884
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2f66b4;
/* rgb */ color: rgb(47, 102, 180);
/* oklch */ color: oklch(51.4% 0.137 257.6);
Tailwind
colors: {
  custom: {
    50: '#7991cb',
    500: '#2f66b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f66b4;
$custom-light: #7991cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f66b4",
  "rgb": {
    "r": 47,
    "g": 102,
    "b": 180
  },
  "hsl": {
    "h": 215.188,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51433,
    "c": 0.1366,
    "h": 257.6
  },
  "luminance": 0.13402
}

Semantic roles & 50–950 ramp

primary
#2F66B4
secondary
#C7A678
accent
#A146E2
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2F66B4

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

Preview Lab → · Contrast checker → · Palette generator →

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