#2F46A9#2F46A9

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

Color values

HEX#2F46A9
RGBrgb(47, 70, 169)
HSLhsl(229, 56%, 42%)
HSVhsv(229, 72%, 66%)
CMYKcmyk(72.2%, 58.6%, 0%, 33.7%)
CIE-LABlab(33.66, 26.00, -55.78)
CIE-LCHlch(33.66, 61.55, 294.99°)
OKLaboklab(43.81% -0.0033 -0.1609)
OKLCHoklch(43.81% 0.161 268.8)
XYZxyz(10.5214, 7.8482, 38.4888)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46A9 #A9922F
analogous
#2F83A9 #2F46A9 #552FA9
triadic
#2F46A9 #A92F46 #46A92F
tetradic
#2F46A9 #A92F83 #A9922F #2FA955
square
#2F46A9 #A92F83 #A9922F #2FA955
split-complementary
#2F46A9 #A9552F #83A92F
monochromatic
#141E49 #223279 #2F46A9 #4962CC #798BDA

Accessibility & contrast

On white

8.17
#2F46A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#2F46A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46A9
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46A9#FFFFFF#000000##FFFFFF
##2F46A91.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AC
Deuteranopia (green-blind)
#004AA7
Tritanopia (blue-blind)
#005F70
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f46a9;
/* rgb */ color: rgb(47, 70, 169);
/* oklch */ color: oklch(43.8% 0.161 268.8);
Tailwind
colors: {
  custom: {
    50: '#7879c3',
    500: '#2f46a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f46a9;
$custom-light: #7879c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46a9",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 169
  },
  "hsl": {
    "h": 228.689,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43806,
    "c": 0.16089,
    "h": 268.8
  },
  "luminance": 0.07849
}

Semantic roles & 50–950 ramp

primary
#2F46A9
secondary
#C2B372
accent
#C348E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F46A9

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

Preview Lab → · Contrast checker → · Palette generator →

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