#2F40C9#2F40C9

#2F40C9 is a mid, highly saturated blue. Relative luminance 0.085; OKLCH L 45.6% C 0.210 H 269.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#2F40C9
RGBrgb(47, 64, 201)
HSLhsl(233, 62%, 49%)
HSVhsv(233, 77%, 79%)
CMYKcmyk(76.6%, 68.2%, 0%, 21.2%)
CIE-LABlab(34.98, 41.44, -72.51)
CIE-LCHlch(34.98, 83.52, 299.75°)
OKLaboklab(45.63% -0.0007 -0.2099)
OKLCHoklch(45.63% 0.21 269.8)
XYZxyz(13.5447, 8.4867, 56.1713)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F40C9 #C9B82F
analogous
#2F8DC9 #2F40C9 #6B2FC9
triadic
#2F40C9 #C92F40 #40C92F
tetradic
#2F40C9 #C92F8D #C9B82F #2FC96B
square
#2F40C9 #C92F8D #C9B82F #2FC96B
split-complementary
#2F40C9 #C96B2F #8DC92F
monochromatic
#182066 #233097 #2F40C9 #5C6AD9 #8E97E5

Accessibility & contrast

On white

7.78
#2F40C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2F40C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F40C9
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F40C9#FFFFFF#000000##FFFFFF
##2F40C91.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#004BC6
Tritanopia (blue-blind)
#00667F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2f40c9;
/* rgb */ color: rgb(47, 64, 201);
/* oklch */ color: oklch(45.6% 0.210 269.8);
Tailwind
colors: {
  custom: {
    50: '#8075db',
    500: '#2f40c9',
    950: '#000000',
  },
}
SCSS
$custom: #2f40c9;
$custom-light: #8075db;
$custom-dark: #000000;
JSON
{
  "hex": "#2f40c9",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 201
  },
  "hsl": {
    "h": 233.377,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.45626,
    "c": 0.20991,
    "h": 269.8
  },
  "luminance": 0.08488
}

Semantic roles & 50–950 ramp

primary
#2F40C9
secondary
#CFC785
accent
#D343E5
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #2F40C9

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

Preview Lab → · Contrast checker → · Palette generator →

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