#2F45A8#2F45A8

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

Color values

HEX#2F45A8
RGBrgb(47, 69, 168)
HSLhsl(229, 56%, 42%)
HSVhsv(229, 72%, 66%)
CMYKcmyk(72%, 58.9%, 0%, 34.1%)
CIE-LABlab(33.32, 26.29, -55.74)
CIE-LCHlch(33.32, 61.63, 295.25°)
OKLaboklab(43.53% -0.0026 -0.1607)
OKLCHoklch(43.53% 0.161 269.1)
XYZxyz(10.3659, 7.6867, 37.9756)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45A8 #A8922F
analogous
#2F82A8 #2F45A8 #562FA8
triadic
#2F45A8 #A82F45 #45A82F
tetradic
#2F45A8 #A82F82 #A8922F #2FA856
square
#2F45A8 #A82F82 #A8922F #2FA856
split-complementary
#2F45A8 #A8562F #82A82F
monochromatic
#141E48 #223178 #2F45A8 #4860CC #788AD9

Accessibility & contrast

On white

8.28
#2F45A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#2F45A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45A8
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45A8#FFFFFF#000000##FFFFFF
##2F45A81.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#0049A6
Tritanopia (blue-blind)
#005E6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f45a8;
/* rgb */ color: rgb(47, 69, 168);
/* oklch */ color: oklch(43.5% 0.161 269.1);
Tailwind
colors: {
  custom: {
    50: '#7878c3',
    500: '#2f45a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f45a8;
$custom-light: #7878c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45a8",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 229.091,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.43525,
    "c": 0.16077,
    "h": 269.1
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#2F45A8
secondary
#C1B371
accent
#C448E0
background
#F7F7FC
surface
#EEEDF8
border
#C9C8D1
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #2F45A8

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

Preview Lab → · Contrast checker → · Palette generator →

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