#2F45C9#2F45C9

#2F45C9 is a mid, highly saturated blue. Relative luminance 0.091; OKLCH L 46.5% C 0.204 H 269.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#2F45C9
RGBrgb(47, 69, 201)
HSLhsl(231, 62%, 49%)
HSVhsv(231, 77%, 79%)
CMYKcmyk(76.6%, 65.7%, 0%, 21.2%)
CIE-LABlab(36.13, 38.34, -70.62)
CIE-LCHlch(36.13, 80.36, 298.50°)
OKLaboklab(46.47% -0.0033 -0.2043)
OKLCHoklch(46.47% 0.204 269.1)
XYZxyz(13.8394, 9.0761, 56.2695)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F45C9 #C9B32F
analogous
#2F92C9 #2F45C9 #662FC9
triadic
#2F45C9 #C92F45 #45C92F
tetradic
#2F45C9 #C92F92 #C9B32F #2FC966
square
#2F45C9 #C92F92 #C9B32F #2FC966
split-complementary
#2F45C9 #C9662F #92C92F
monochromatic
#182366 #233497 #2F45C9 #5C6ED9 #8E9AE5

Accessibility & contrast

On white

7.46
#2F45C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2F45C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F45C9
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F45C9#FFFFFF#000000##FFFFFF
##2F45C91.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCD
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#006881
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2f45c9;
/* rgb */ color: rgb(47, 69, 201);
/* oklch */ color: oklch(46.5% 0.204 269.1);
Tailwind
colors: {
  custom: {
    50: '#8078db',
    500: '#2f45c9',
    950: '#000000',
  },
}
SCSS
$custom: #2f45c9;
$custom-light: #8078db;
$custom-dark: #000000;
JSON
{
  "hex": "#2f45c9",
  "rgb": {
    "r": 47,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 231.429,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46466,
    "c": 0.20438,
    "h": 269.1
  },
  "luminance": 0.09078
}

Semantic roles & 50–950 ramp

primary
#2F45C9
secondary
#CFC485
accent
#CE43E5
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #2F45C9

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

Preview Lab → · Contrast checker → · Palette generator →

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