#2F43B1#2F43B1

#2F43B1 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.9% C 0.175 H 269.6°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#2F43B1
RGBrgb(47, 67, 177)
HSLhsl(231, 58%, 44%)
HSVhsv(231, 73%, 69%)
CMYKcmyk(73.4%, 62.1%, 0%, 30.6%)
CIE-LABlab(33.55, 30.93, -60.75)
CIE-LCHlch(33.55, 68.17, 296.99°)
OKLaboklab(43.92% -0.0011 -0.1755)
OKLCHoklch(43.92% 0.175 269.6)
XYZxyz(11.1125, 7.7918, 42.5048)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F43B1 #B19D2F
analogous
#2F84B1 #2F43B1 #5C2FB1
triadic
#2F43B1 #B12F43 #43B12F
tetradic
#2F43B1 #B12F84 #B19D2F #2FB15C
square
#2F43B1 #B12F84 #B19D2F #2FB15C
split-complementary
#2F43B1 #B15C2F #84B12F
monochromatic
#151E50 #223181 #2F43B1 #4D61D0 #7E8CDD

Accessibility & contrast

On white

8.21
#2F43B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2F43B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F43B1
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F43B1#FFFFFF#000000##FFFFFF
##2F43B11.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f43b1;
/* rgb */ color: rgb(47, 67, 177);
/* oklch */ color: oklch(43.9% 0.175 269.6);
Tailwind
colors: {
  custom: {
    50: '#7a77c9',
    500: '#2f43b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f43b1;
$custom-light: #7a77c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f43b1",
  "rgb": {
    "r": 47,
    "g": 67,
    "b": 177
  },
  "hsl": {
    "h": 230.769,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.43921,
    "c": 0.17546,
    "h": 269.6
  },
  "luminance": 0.07793
}

Semantic roles & 50–950 ramp

primary
#2F43B1
secondary
#C5B976
accent
#C947E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #2F43B1

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

Preview Lab → · Contrast checker → · Palette generator →

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