#2F42AE#2F42AE

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

Color values

HEX#2F42AE
RGBrgb(47, 66, 174)
HSLhsl(231, 57%, 43%)
HSVhsv(231, 73%, 68%)
CMYKcmyk(73%, 62.1%, 0%, 31.8%)
CIE-LABlab(33.04, 30.48, -59.79)
CIE-LCHlch(33.04, 67.11, 297.02°)
OKLaboklab(43.47% -0.0003 -0.1727)
OKLCHoklch(43.47% 0.173 269.9)
XYZxyz(10.7579, 7.5556, 40.9276)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42AE #AE9B2F
analogous
#2F81AE #2F42AE #5C2FAE
triadic
#2F42AE #AE2F42 #42AE2F
tetradic
#2F42AE #AE2F81 #AE9B2F #2FAE5C
square
#2F42AE #AE2F81 #AE9B2F #2FAE5C
split-complementary
#2F42AE #AE5C2F #81AE2F
monochromatic
#151D4E #22307E #2F42AE #4C5FCF #7C8ADC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F42AE#FFFFFF#000000##FFFFFF
##2F42AE1.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)
#0054B2
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#005E71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f42ae;
/* rgb */ color: rgb(47, 66, 174);
/* oklch */ color: oklch(43.5% 0.173 269.9);
Tailwind
colors: {
  custom: {
    50: '#7a76c7',
    500: '#2f42ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f42ae;
$custom-light: #7a76c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42ae",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 231.024,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43469,
    "c": 0.17266,
    "h": 269.9
  },
  "luminance": 0.07557
}

Semantic roles & 50–950 ramp

primary
#2F42AE
secondary
#C4B875
accent
#CA47E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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