#2F42A5#2F42A5

#2F42A5 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.7% C 0.160 H 269.9°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#2F42A5
RGBrgb(47, 66, 165)
HSLhsl(230, 56%, 42%)
HSVhsv(230, 72%, 65%)
CMYKcmyk(71.5%, 60%, 0%, 35.3%)
CIE-LABlab(32.29, 27.16, -55.62)
CIE-LCHlch(32.29, 61.90, 296.03°)
OKLaboklab(42.68% -0.0002 -0.1604)
OKLCHoklch(42.68% 0.16 269.9)
XYZxyz(9.9097, 7.2164, 36.4607)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42A5 #A5922F
analogous
#2F7DA5 #2F42A5 #572FA5
triadic
#2F42A5 #A52F42 #42A52F
tetradic
#2F42A5 #A52F7D #A5922F #2FA557
square
#2F42A5 #A52F7D #A5922F #2FA557
split-complementary
#2F42A5 #A5572F #7DA52F
monochromatic
#141C46 #212F75 #2F42A5 #475CCB #7686D8

Accessibility & contrast

On white

8.59
#2F42A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2F42A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42A5
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42A5#FFFFFF#000000##FFFFFF
##2F42A51.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#005B6D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f42a5;
/* rgb */ color: rgb(47, 66, 165);
/* oklch */ color: oklch(42.7% 0.160 269.9);
Tailwind
colors: {
  custom: {
    50: '#7876c0',
    500: '#2f42a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f42a5;
$custom-light: #7876c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42a5",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 230.339,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42684,
    "c": 0.16042,
    "h": 269.9
  },
  "luminance": 0.07217
}

Semantic roles & 50–950 ramp

primary
#2F42A5
secondary
#C0B370
accent
#C749DF
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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