#2F45A1#2F45A1

#2F45A1 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 42.9% C 0.151 H 268.9°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#2F45A1
RGBrgb(47, 69, 161)
HSLhsl(228, 55%, 41%)
HSVhsv(228, 71%, 63%)
CMYKcmyk(70.8%, 57.1%, 0%, 36.9%)
CIE-LABlab(32.77, 23.68, -52.43)
CIE-LCHlch(32.77, 57.53, 294.31°)
OKLaboklab(42.94% -0.0028 -0.151)
OKLCHoklch(42.94% 0.151 268.9)
XYZxyz(9.7312, 7.4328, 34.6331)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45A1 #A18B2F
analogous
#2F7EA1 #2F45A1 #522FA1
triadic
#2F45A1 #A12F45 #45A12F
tetradic
#2F45A1 #A12F7E #A18B2F #2FA152
square
#2F45A1 #A12F7E #A18B2F #2FA152
split-complementary
#2F45A1 #A1522F #7EA12F
monochromatic
#131C42 #213172 #2F45A1 #455EC9 #7487D6

Accessibility & contrast

On white

8.44
#2F45A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#2F45A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45A1
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45A1#FFFFFF#000000##FFFFFF
##2F45A11.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#005B6C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #2f45a1;
/* rgb */ color: rgb(47, 69, 161);
/* oklch */ color: oklch(42.9% 0.151 268.9);
Tailwind
colors: {
  custom: {
    50: '#7678be',
    500: '#2f45a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f45a1;
$custom-light: #7678be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45a1",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 161
  },
  "hsl": {
    "h": 228.421,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42942,
    "c": 0.15105,
    "h": 268.9
  },
  "luminance": 0.07434
}

Semantic roles & 50–950 ramp

primary
#2F45A1
secondary
#BEAF6E
accent
#C14ADE
background
#F7F7FB
surface
#EEEDF7
border
#C9C8D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #2F45A1

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

Preview Lab → · Contrast checker → · Palette generator →

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