#2F45A7#2F45A7

#2F45A7 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.4% C 0.159 H 269.1°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#2F45A7
RGBrgb(47, 69, 167)
HSLhsl(229, 56%, 42%)
HSVhsv(229, 72%, 65%)
CMYKcmyk(71.9%, 58.7%, 0%, 34.5%)
CIE-LABlab(33.24, 25.92, -55.27)
CIE-LCHlch(33.24, 61.05, 295.12°)
OKLaboklab(43.44% -0.0026 -0.1594)
OKLCHoklch(43.44% 0.159 269.1)
XYZxyz(10.2731, 7.6496, 37.4868)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45A7 #A7912F
analogous
#2F81A7 #2F45A7 #552FA7
triadic
#2F45A7 #A72F45 #45A72F
tetradic
#2F45A7 #A72F81 #A7912F #2FA755
square
#2F45A7 #A72F81 #A7912F #2FA755
split-complementary
#2F45A7 #A7552F #81A72F
monochromatic
#141E47 #223177 #2F45A7 #4860CB #7889D9

Accessibility & contrast

On white

8.30
#2F45A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F45A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45A7
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45A7#FFFFFF#000000##FFFFFF
##2F45A71.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AA
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#005D6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f45a7;
/* rgb */ color: rgb(47, 69, 167);
/* oklch */ color: oklch(43.4% 0.159 269.1);
Tailwind
colors: {
  custom: {
    50: '#7878c2',
    500: '#2f45a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f45a7;
$custom-light: #7878c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45a7",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 167
  },
  "hsl": {
    "h": 229,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4344,
    "c": 0.1594,
    "h": 269.1
  },
  "luminance": 0.07651
}

Semantic roles & 50–950 ramp

primary
#2F45A7
secondary
#C1B271
accent
#C448DF
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F45A7

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

Preview Lab → · Contrast checker → · Palette generator →

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