#2F45B9#2F45B9

#2F45B9 is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.0% C 0.184 H 269.2°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#2F45B9
RGBrgb(47, 69, 185)
HSLhsl(230, 59%, 45%)
HSVhsv(230, 75%, 73%)
CMYKcmyk(74.6%, 62.7%, 0%, 27.5%)
CIE-LABlab(34.73, 32.57, -63.55)
CIE-LCHlch(34.73, 71.41, 297.13°)
OKLaboklab(45% -0.0026 -0.1837)
OKLCHoklch(45% 0.184 269.2)
XYZxyz(12.0544, 8.3621, 46.8683)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45B9 #B9A32F
analogous
#2F8AB9 #2F45B9 #5E2FB9
triadic
#2F45B9 #B92F45 #45B92F
tetradic
#2F45B9 #B92F8A #B9A32F #2FB95E
square
#2F45B9 #B92F8A #B9A32F #2FB95E
split-complementary
#2F45B9 #B95E2F #8AB92F
monochromatic
#162157 #233388 #2F45B9 #5267D3 #8392DF

Accessibility & contrast

On white

7.86
#2F45B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2F45B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45B9
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45B9#FFFFFF#000000##FFFFFF
##2F45B91.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BD
Deuteranopia (green-blind)
#004BB7
Tritanopia (blue-blind)
#006378
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f45b9;
/* rgb */ color: rgb(47, 69, 185);
/* oklch */ color: oklch(45.0% 0.184 269.2);
Tailwind
colors: {
  custom: {
    50: '#7c78cf',
    500: '#2f45b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f45b9;
$custom-light: #7c78cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45b9",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 185
  },
  "hsl": {
    "h": 230.435,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45003,
    "c": 0.18369,
    "h": 269.2
  },
  "luminance": 0.08363
}

Semantic roles & 50–950 ramp

primary
#2F45B9
secondary
#C9BC7B
accent
#CA45E3
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2F45B9

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

Preview Lab → · Contrast checker → · Palette generator →

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