#2F46A8#2F46A8

#2F46A8 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.7% C 0.160 H 268.8°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#2F46A8
RGBrgb(47, 70, 168)
HSLhsl(229, 56%, 42%)
HSVhsv(229, 72%, 66%)
CMYKcmyk(72%, 58.3%, 0%, 34.1%)
CIE-LABlab(33.59, 25.63, -55.31)
CIE-LCHlch(33.59, 60.96, 294.86°)
OKLaboklab(43.72% -0.0033 -0.1595)
OKLCHoklch(43.72% 0.16 268.8)
XYZxyz(10.4279, 7.8107, 37.9963)
Luminance0.0781 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46A8 #A8912F
analogous
#2F83A8 #2F46A8 #552FA8
triadic
#2F46A8 #A82F46 #46A82F
tetradic
#2F46A8 #A82F83 #A8912F #2FA855
square
#2F46A8 #A82F83 #A8912F #2FA855
split-complementary
#2F46A8 #A8552F #83A82F
monochromatic
#141E48 #223278 #2F46A8 #4861CC #788BD9

Accessibility & contrast

On white

8.20
#2F46A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F46A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46A8
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46A8#FFFFFF#000000##FFFFFF
##2F46A81.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AB
Deuteranopia (green-blind)
#004AA6
Tritanopia (blue-blind)
#005E70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f46a8;
/* rgb */ color: rgb(47, 70, 168);
/* oklch */ color: oklch(43.7% 0.160 268.8);
Tailwind
colors: {
  custom: {
    50: '#7879c3',
    500: '#2f46a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f46a8;
$custom-light: #7879c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46a8",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 168
  },
  "hsl": {
    "h": 228.595,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43722,
    "c": 0.15951,
    "h": 268.8
  },
  "luminance": 0.07812
}

Semantic roles & 50–950 ramp

primary
#2F46A8
secondary
#C1B271
accent
#C348E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F46A8

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

Preview Lab → · Contrast checker → · Palette generator →

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