#2F42AA#2F42AA

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

Color values

HEX#2F42AA
RGBrgb(47, 66, 170)
HSLhsl(231, 57%, 43%)
HSVhsv(231, 72%, 67%)
CMYKcmyk(72.4%, 61.2%, 0%, 33.3%)
CIE-LABlab(32.71, 29.01, -57.95)
CIE-LCHlch(32.71, 64.80, 296.60°)
OKLaboklab(43.12% -0.0003 -0.1673)
OKLCHoklch(43.12% 0.167 269.9)
XYZxyz(10.3737, 7.4020, 38.9044)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42AA #AA972F
analogous
#2F7FAA #2F42AA #5A2FAA
triadic
#2F42AA #AA2F42 #42AA2F
tetradic
#2F42AA #AA2F7F #AA972F #2FAA5A
square
#2F42AA #AA2F7F #AA972F #2FAA5A
split-complementary
#2F42AA #AA5A2F #7FAA2F
monochromatic
#141D4A #222F7A #2F42AA #495ECD #7988DA

Accessibility & contrast

On white

8.47
#2F42AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#2F42AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42AA
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42AA#FFFFFF#000000##FFFFFF
##2F42AA1.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f42aa;
/* rgb */ color: rgb(47, 66, 170);
/* oklch */ color: oklch(43.1% 0.167 269.9);
Tailwind
colors: {
  custom: {
    50: '#7976c4',
    500: '#2f42aa',
    950: '#000000',
  },
}
SCSS
$custom: #2f42aa;
$custom-light: #7976c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42aa",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 230.732,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.43117,
    "c": 0.16726,
    "h": 269.9
  },
  "luminance": 0.07403
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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