#2F40C0#2F40C0

#2F40C0 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.199 H 270.0°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#2F40C0
RGBrgb(47, 64, 192)
HSLhsl(233, 61%, 47%)
HSVhsv(233, 76%, 75%)
CMYKcmyk(75.5%, 66.7%, 0%, 24.7%)
CIE-LABlab(34.14, 38.26, -68.63)
CIE-LCHlch(34.14, 78.58, 299.14°)
OKLaboklab(44.76% 0.0001 -0.1986)
OKLCHoklch(44.76% 0.199 270)
XYZxyz(12.5169, 8.0755, 50.7580)
Luminance0.0808 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F40C0 #C0AF2F
analogous
#2F88C0 #2F40C0 #672FC0
triadic
#2F40C0 #C02F40 #40C02F
tetradic
#2F40C0 #C02F88 #C0AF2F #2FC067
square
#2F40C0 #C02F88 #C0AF2F #2FC067
split-complementary
#2F40C0 #C0672F #88C02F
monochromatic
#171F5E #23308F #2F40C0 #5665D6 #8892E2

Accessibility & contrast

On white

8.03
#2F40C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2F40C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F40C0
8.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F40C0#FFFFFF#000000##FFFFFF
##2F40C01.008.032.628.03
#FFFFFF8.031.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C4
Deuteranopia (green-blind)
#0049BE
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2f40c0;
/* rgb */ color: rgb(47, 64, 192);
/* oklch */ color: oklch(44.8% 0.199 270.0);
Tailwind
colors: {
  custom: {
    50: '#7e75d4',
    500: '#2f40c0',
    950: '#000000',
  },
}
SCSS
$custom: #2f40c0;
$custom-light: #7e75d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f40c0",
  "rgb": {
    "r": 47,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 232.966,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44764,
    "c": 0.19856,
    "h": 270
  },
  "luminance": 0.08077
}

Semantic roles & 50–950 ramp

primary
#2F40C0
secondary
#CBC37F
accent
#D144E4
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #2F40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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