#2F43A7#2F43A7

#2F43A7 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.0% C 0.162 H 269.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#2F43A7
RGBrgb(47, 67, 167)
HSLhsl(230, 56%, 42%)
HSVhsv(230, 72%, 65%)
CMYKcmyk(71.9%, 59.9%, 0%, 34.5%)
CIE-LABlab(32.72, 27.24, -56.13)
CIE-LCHlch(32.72, 62.39, 295.89°)
OKLaboklab(43.05% -0.001 -0.1619)
OKLCHoklch(43.05% 0.162 269.6)
XYZxyz(10.1521, 7.4076, 37.4465)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F43A7 #A7932F
analogous
#2F7FA7 #2F43A7 #572FA7
triadic
#2F43A7 #A72F43 #43A72F
tetradic
#2F43A7 #A72F7F #A7932F #2FA757
square
#2F43A7 #A72F7F #A7932F #2FA757
split-complementary
#2F43A7 #A7572F #7FA72F
monochromatic
#141D47 #223077 #2F43A7 #485ECB #7888D9

Accessibility & contrast

On white

8.46
#2F43A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F43A7
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F43A7#FFFFFF#000000##FFFFFF
##2F43A71.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f43a7;
/* rgb */ color: rgb(47, 67, 167);
/* oklch */ color: oklch(43.0% 0.162 269.6);
Tailwind
colors: {
  custom: {
    50: '#7876c2',
    500: '#2f43a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f43a7;
$custom-light: #7876c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f43a7",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 167
  },
  "hsl": {
    "h": 230,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4305,
    "c": 0.16191,
    "h": 269.6
  },
  "luminance": 0.07409
}

Semantic roles & 50–950 ramp

primary
#2F43A7
secondary
#C1B471
accent
#C648DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F43A7

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

Preview Lab → · Contrast checker → · Palette generator →

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