#2F45B0#2F45B0

#2F45B0 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.2% C 0.172 H 269.2°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#2F45B0
RGBrgb(47, 69, 176)
HSLhsl(230, 58%, 44%)
HSVhsv(230, 73%, 69%)
CMYKcmyk(73.3%, 60.8%, 0%, 31%)
CIE-LABlab(33.97, 29.26, -59.46)
CIE-LCHlch(33.97, 66.27, 296.20°)
OKLaboklab(44.21% -0.0025 -0.1717)
OKLCHoklch(44.21% 0.172 269.2)
XYZxyz(11.1342, 7.9940, 42.0221)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45B0 #B09A2F
analogous
#2F85B0 #2F45B0 #592FB0
triadic
#2F45B0 #B02F45 #45B02F
tetradic
#2F45B0 #B02F85 #B09A2F #2FB059
square
#2F45B0 #B02F85 #B09A2F #2FB059
split-complementary
#2F45B0 #B0592F #85B02F
monochromatic
#151F4F #223280 #2F45B0 #4D63CF #7D8DDC

Accessibility & contrast

On white

8.08
#2F45B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2F45B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45B0
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45B0#FFFFFF#000000##FFFFFF
##2F45B01.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B4
Deuteranopia (green-blind)
#004AAE
Tritanopia (blue-blind)
#006074
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f45b0;
/* rgb */ color: rgb(47, 69, 176);
/* oklch */ color: oklch(44.2% 0.172 269.2);
Tailwind
colors: {
  custom: {
    50: '#7a78c8',
    500: '#2f45b0',
    950: '#000000',
  },
}
SCSS
$custom: #2f45b0;
$custom-light: #7a78c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45b0",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 176
  },
  "hsl": {
    "h": 229.767,
    "s": 57.848,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4421,
    "c": 0.17168,
    "h": 269.2
  },
  "luminance": 0.07995
}

Semantic roles & 50–950 ramp

primary
#2F45B0
secondary
#C5B776
accent
#C747E1
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #2F45B0

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

Preview Lab → · Contrast checker → · Palette generator →

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