#2F42A0#2F42A0

#2F42A0 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.3% C 0.153 H 269.9°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#2F42A0
RGBrgb(47, 66, 160)
HSLhsl(230, 55%, 41%)
HSVhsv(230, 71%, 63%)
CMYKcmyk(70.6%, 58.8%, 0%, 37.3%)
CIE-LABlab(31.89, 25.31, -53.26)
CIE-LCHlch(31.89, 58.97, 295.42°)
OKLaboklab(42.26% -0.0003 -0.1535)
OKLCHoklch(42.26% 0.153 269.9)
XYZxyz(9.4635, 7.0379, 34.1106)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42A0 #A08D2F
analogous
#2F7AA0 #2F42A0 #552FA0
triadic
#2F42A0 #A02F42 #42A02F
tetradic
#2F42A0 #A02F7A #A08D2F #2FA055
square
#2F42A0 #A02F7A #A08D2F #2FA055
split-complementary
#2F42A0 #A0552F #7AA02F
monochromatic
#131B41 #212E71 #2F42A0 #445AC8 #7384D6

Accessibility & contrast

On white

8.72
#2F42A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#2F42A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42A0
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42A0#FFFFFF#000000##FFFFFF
##2F42A01.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A3
Deuteranopia (green-blind)
#00469E
Tritanopia (blue-blind)
#00596A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2f42a0;
/* rgb */ color: rgb(47, 66, 160);
/* oklch */ color: oklch(42.3% 0.153 269.9);
Tailwind
colors: {
  custom: {
    50: '#7676bd',
    500: '#2f42a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f42a0;
$custom-light: #7676bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42a0",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 160
  },
  "hsl": {
    "h": 229.912,
    "s": 54.589,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4226,
    "c": 0.15349,
    "h": 269.9
  },
  "luminance": 0.07039
}

Semantic roles & 50–950 ramp

primary
#2F42A0
secondary
#BEB06D
accent
#C54ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F42A0

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

Preview Lab → · Contrast checker → · Palette generator →

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