#2F42AC#2F42AC

#2F42AC is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.3% C 0.170 H 269.9°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#2F42AC
RGBrgb(47, 66, 172)
HSLhsl(231, 57%, 43%)
HSVhsv(231, 73%, 67%)
CMYKcmyk(72.7%, 61.6%, 0%, 32.5%)
CIE-LABlab(32.87, 29.75, -58.87)
CIE-LCHlch(32.87, 65.96, 296.81°)
OKLaboklab(43.29% -0.0003 -0.17)
OKLCHoklch(43.29% 0.17 269.9)
XYZxyz(10.5644, 7.4782, 39.9084)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42AC #AC992F
analogous
#2F80AC #2F42AC #5A2FAC
triadic
#2F42AC #AC2F42 #42AC2F
tetradic
#2F42AC #AC2F80 #AC992F #2FAC5A
square
#2F42AC #AC2F80 #AC992F #2FAC5A
split-complementary
#2F42AC #AC5A2F #80AC2F
monochromatic
#151D4C #22307C #2F42AC #4B5ECE #7B89DB

Accessibility & contrast

On white

8.41
#2F42AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#2F42AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42AC
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42AC#FFFFFF#000000##FFFFFF
##2F42AC1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f42ac;
/* rgb */ color: rgb(47, 66, 172);
/* oklch */ color: oklch(43.3% 0.170 269.9);
Tailwind
colors: {
  custom: {
    50: '#7976c6',
    500: '#2f42ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f42ac;
$custom-light: #7976c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42ac",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 230.88,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43292,
    "c": 0.16997,
    "h": 269.9
  },
  "luminance": 0.07479
}

Semantic roles & 50–950 ramp

primary
#2F42AC
secondary
#C3B774
accent
#C947E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #2F42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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