#2F42AB#2F42AB

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

Color values

HEX#2F42AB
RGBrgb(47, 66, 171)
HSLhsl(231, 57%, 43%)
HSVhsv(231, 73%, 67%)
CMYKcmyk(72.5%, 61.4%, 0%, 32.9%)
CIE-LABlab(32.79, 29.38, -58.41)
CIE-LCHlch(32.79, 65.38, 296.70°)
OKLaboklab(43.21% -0.0003 -0.1686)
OKLCHoklch(43.21% 0.169 269.9)
XYZxyz(10.4687, 7.4400, 39.4045)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42AB #AB982F
analogous
#2F80AB #2F42AB #5A2FAB
triadic
#2F42AB #AB2F42 #42AB2F
tetradic
#2F42AB #AB2F80 #AB982F #2FAB5A
square
#2F42AB #AB2F80 #AB982F #2FAB5A
split-complementary
#2F42AB #AB5A2F #80AB2F
monochromatic
#151D4B #222F7B #2F42AB #4A5ECD #7A89DA

Accessibility & contrast

On white

8.44
#2F42AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2F42AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42AB
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42AB#FFFFFF#000000##FFFFFF
##2F42AB1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AE
Deuteranopia (green-blind)
#0048A9
Tritanopia (blue-blind)
#005D70
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f42ab;
/* rgb */ color: rgb(47, 66, 171);
/* oklch */ color: oklch(43.2% 0.169 269.9);
Tailwind
colors: {
  custom: {
    50: '#7976c5',
    500: '#2f42ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f42ab;
$custom-light: #7976c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42ab",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 230.806,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.43205,
    "c": 0.16861,
    "h": 269.9
  },
  "luminance": 0.07441
}

Semantic roles & 50–950 ramp

primary
#2F42AB
secondary
#C3B773
accent
#C948E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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