#2F42A9#2F42A9

#2F42A9 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.0% C 0.166 H 269.9°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#2F42A9
RGBrgb(47, 66, 169)
HSLhsl(231, 56%, 42%)
HSVhsv(231, 72%, 66%)
CMYKcmyk(72.2%, 60.9%, 0%, 33.7%)
CIE-LABlab(32.62, 28.64, -57.48)
CIE-LCHlch(32.62, 64.22, 296.49°)
OKLaboklab(43.03% -0.0002 -0.1659)
OKLCHoklch(43.03% 0.166 269.9)
XYZxyz(10.2795, 7.3643, 38.4081)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42A9 #A9962F
analogous
#2F7FA9 #2F42A9 #592FA9
triadic
#2F42A9 #A92F42 #42A92F
tetradic
#2F42A9 #A92F7F #A9962F #2FA959
square
#2F42A9 #A92F7F #A9962F #2FA959
split-complementary
#2F42A9 #A9592F #7FA92F
monochromatic
#141D49 #222F79 #2F42A9 #495DCC #7988DA

Accessibility & contrast

On white

8.49
#2F42A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#2F42A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42A9
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42A9#FFFFFF#000000##FFFFFF
##2F42A91.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AC
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#005C6F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f42a9;
/* rgb */ color: rgb(47, 66, 169);
/* oklch */ color: oklch(43.0% 0.166 269.9);
Tailwind
colors: {
  custom: {
    50: '#7976c3',
    500: '#2f42a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f42a9;
$custom-light: #7976c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42a9",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 230.656,
    "s": 56.481,
    "l": 42.353
  },
  "oklch": {
    "l": 0.4303,
    "c": 0.1659,
    "h": 269.9
  },
  "luminance": 0.07365
}

Semantic roles & 50–950 ramp

primary
#2F42A9
secondary
#C2B572
accent
#C848E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F42A9

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

Preview Lab → · Contrast checker → · Palette generator →

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