#2F18B4#2F18B4

#2F18B4 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 38.2% C 0.220 H 274.9°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#2F18B4
RGBrgb(47, 24, 180)
HSLhsl(249, 76%, 40%)
HSVhsv(249, 87%, 71%)
CMYKcmyk(73.9%, 86.7%, 0%, 29.4%)
CIE-LABlab(25.42, 55.41, -75.93)
CIE-LCHlch(25.42, 94.00, 306.12°)
OKLaboklab(38.22% 0.0188 -0.2194)
OKLCHoklch(38.22% 0.22 274.9)
XYZxyz(9.7344, 4.5519, 43.5368)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F18B4 #9DB418
analogous
#184FB4 #2F18B4 #7D18B4
triadic
#2F18B4 #B42F18 #18B42F
tetradic
#2F18B4 #B4184F #9DB418 #18B47D
square
#2F18B4 #B4184F #9DB418 #18B47D
split-complementary
#2F18B4 #B47D18 #4FB418
monochromatic
#130A48 #21117E #2F18B4 #4327E2 #725DE9

Accessibility & contrast

On white

10.99
#2F18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F18B4
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F18B4#FFFFFF#000000##FFFFFF
##2F18B41.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B8
Deuteranopia (green-blind)
#0035B1
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f18b4;
/* rgb */ color: rgb(47, 24, 180);
/* oklch */ color: oklch(38.2% 0.220 274.9);
Tailwind
colors: {
  custom: {
    50: '#7f5dcc',
    500: '#2f18b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f18b4;
$custom-light: #7f5dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f18b4",
  "rgb": {
    "r": 47,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 248.846,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.38218,
    "c": 0.22024,
    "h": 274.9
  },
  "luminance": 0.04553
}

Semantic roles & 50–950 ramp

primary
#2F18B4
secondary
#BCCD5B
accent
#F335D7
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #2F18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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