#2F45B1#2F45B1

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

Color values

HEX#2F45B1
RGBrgb(47, 69, 177)
HSLhsl(230, 58%, 44%)
HSVhsv(230, 73%, 69%)
CMYKcmyk(73.4%, 61%, 0%, 30.6%)
CIE-LABlab(34.05, 29.63, -59.92)
CIE-LCHlch(34.05, 66.84, 296.31°)
OKLaboklab(44.3% -0.0025 -0.173)
OKLCHoklch(44.3% 0.173 269.2)
XYZxyz(11.2335, 8.0337, 42.5451)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45B1 #B19B2F
analogous
#2F86B1 #2F45B1 #5A2FB1
triadic
#2F45B1 #B12F45 #45B12F
tetradic
#2F45B1 #B12F86 #B19B2F #2FB15A
square
#2F45B1 #B12F86 #B19B2F #2FB15A
split-complementary
#2F45B1 #B15A2F #86B12F
monochromatic
#151F50 #223281 #2F45B1 #4D63D0 #7E8EDD

Accessibility & contrast

On white

8.06
#2F45B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#2F45B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45B1
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45B1#FFFFFF#000000##FFFFFF
##2F45B11.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f45b1;
/* rgb */ color: rgb(47, 69, 177);
/* oklch */ color: oklch(44.3% 0.173 269.2);
Tailwind
colors: {
  custom: {
    50: '#7a78c9',
    500: '#2f45b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f45b1;
$custom-light: #7a78c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45b1",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 177
  },
  "hsl": {
    "h": 229.846,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.44297,
    "c": 0.17303,
    "h": 269.2
  },
  "luminance": 0.08035
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F45B1

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

Preview Lab → · Contrast checker → · Palette generator →

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