#2F46A1#2F46A1

#2F46A1 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.1% C 0.150 H 268.6°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#2F46A1
RGBrgb(47, 70, 161)
HSLhsl(228, 55%, 41%)
HSVhsv(228, 71%, 63%)
CMYKcmyk(70.8%, 56.5%, 0%, 36.9%)
CIE-LABlab(33.04, 23.01, -51.99)
CIE-LCHlch(33.04, 56.86, 293.88°)
OKLaboklab(43.14% -0.0036 -0.1497)
OKLCHoklch(43.14% 0.15 268.6)
XYZxyz(9.7933, 7.5569, 34.6538)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F46A1 #A18A2F
analogous
#2F7FA1 #2F46A1 #512FA1
triadic
#2F46A1 #A12F46 #46A12F
tetradic
#2F46A1 #A12F7F #A18A2F #2FA151
square
#2F46A1 #A12F7F #A18A2F #2FA151
split-complementary
#2F46A1 #A1512F #7FA12F
monochromatic
#131D42 #213172 #2F46A1 #455FC9 #7488D6

Accessibility & contrast

On white

8.36
#2F46A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2F46A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F46A1
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F46A1#FFFFFF#000000##FFFFFF
##2F46A11.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A4
Deuteranopia (green-blind)
#00499F
Tritanopia (blue-blind)
#005C6C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f46a1;
/* rgb */ color: rgb(47, 70, 161);
/* oklch */ color: oklch(43.1% 0.150 268.6);
Tailwind
colors: {
  custom: {
    50: '#7679bd',
    500: '#2f46a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f46a1;
$custom-light: #7679bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f46a1",
  "rgb": {
    "r": 47,
    "g": 70,
    "b": 161
  },
  "hsl": {
    "h": 227.895,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.43144,
    "c": 0.14976,
    "h": 268.6
  },
  "luminance": 0.07558
}

Semantic roles & 50–950 ramp

primary
#2F46A1
secondary
#BEAE6E
accent
#C04ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F46A1

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

Preview Lab → · Contrast checker → · Palette generator →

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