#2F46A6#2F46A6

#2F46A6 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.6% C 0.157 H 268.8°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#2F46A6
RGBrgb(47, 70, 166)
HSLhsl(228, 56%, 42%)
HSVhsv(228, 72%, 65%)
CMYKcmyk(71.7%, 57.8%, 0%, 34.9%)
CIE-LABlab(33.43, 24.89, -54.37)
CIE-LCHlch(33.43, 59.80, 294.59°)
OKLaboklab(43.56% -0.0034 -0.1567)
OKLCHoklch(43.56% 0.157 268.8)
XYZxyz(10.2430, 7.7368, 37.0225)
Luminance0.0774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46A6 #A68F2F
analogous
#2F82A6 #2F46A6 #532FA6
triadic
#2F46A6 #A62F46 #46A62F
tetradic
#2F46A6 #A62F82 #A68F2F #2FA653
square
#2F46A6 #A62F82 #A68F2F #2FA653
split-complementary
#2F46A6 #A6532F #82A62F
monochromatic
#141E47 #213276 #2F46A6 #4761CB #778AD8

Accessibility & contrast

On white

8.24
#2F46A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#2F46A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46A6
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46A6#FFFFFF#000000##FFFFFF
##2F46A61.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f46a6;
/* rgb */ color: rgb(47, 70, 166);
/* oklch */ color: oklch(43.6% 0.157 268.8);
Tailwind
colors: {
  custom: {
    50: '#7879c1',
    500: '#2f46a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f46a6;
$custom-light: #7879c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46a6",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 166
  },
  "hsl": {
    "h": 228.403,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.43555,
    "c": 0.15675,
    "h": 268.8
  },
  "luminance": 0.07738
}

Semantic roles & 50–950 ramp

primary
#2F46A6
secondary
#C1B170
accent
#C249DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F46A6

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

Preview Lab → · Contrast checker → · Palette generator →

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