#2F45AE#2F45AE

#2F45AE is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.0% C 0.169 H 269.2°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2F45AE
RGBrgb(47, 69, 174)
HSLhsl(230, 57%, 43%)
HSVhsv(230, 73%, 68%)
CMYKcmyk(73%, 60.3%, 0%, 31.8%)
CIE-LABlab(33.81, 28.52, -58.54)
CIE-LCHlch(33.81, 65.11, 295.98°)
OKLaboklab(44.04% -0.0025 -0.169)
OKLCHoklch(44.04% 0.169 269.2)
XYZxyz(10.9378, 7.9154, 40.9876)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45AE #AE982F
analogous
#2F84AE #2F45AE #582FAE
triadic
#2F45AE #AE2F45 #45AE2F
tetradic
#2F45AE #AE2F84 #AE982F #2FAE58
square
#2F45AE #AE2F84 #AE982F #2FAE58
split-complementary
#2F45AE #AE582F #84AE2F
monochromatic
#151F4E #22327E #2F45AE #4C62CF #7C8CDC

Accessibility & contrast

On white

8.13
#2F45AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2F45AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45AE
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45AE#FFFFFF#000000##FFFFFF
##2F45AE1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B1
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#005F73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2f45ae;
/* rgb */ color: rgb(47, 69, 174);
/* oklch */ color: oklch(44.0% 0.169 269.2);
Tailwind
colors: {
  custom: {
    50: '#7978c7',
    500: '#2f45ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f45ae;
$custom-light: #7978c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45ae",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 229.606,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.44037,
    "c": 0.16898,
    "h": 269.2
  },
  "luminance": 0.07917
}

Semantic roles & 50–950 ramp

primary
#2F45AE
secondary
#C4B675
accent
#C647E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2F45AE

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

Preview Lab → · Contrast checker → · Palette generator →

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