#2F42BC#2F42BC

#2F42BC is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.191 H 269.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#2F42BC
RGBrgb(47, 66, 188)
HSLhsl(232, 60%, 46%)
HSVhsv(232, 75%, 74%)
CMYKcmyk(75%, 64.9%, 0%, 26.3%)
CIE-LABlab(34.25, 35.57, -66.09)
CIE-LCHlch(34.25, 75.06, 298.29°)
OKLaboklab(44.74% -0.0009 -0.1911)
OKLCHoklch(44.74% 0.191 269.7)
XYZxyz(12.1945, 8.1303, 48.4938)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F42BC #BCA92F
analogous
#2F88BC #2F42BC #622FBC
triadic
#2F42BC #BC2F42 #42BC2F
tetradic
#2F42BC #BC2F88 #BCA92F #2FBC62
square
#2F42BC #BC2F88 #BCA92F #2FBC62
split-complementary
#2F42BC #BC622F #88BC2F
monochromatic
#17205A #23318B #2F42BC #5465D4 #8591E0

Accessibility & contrast

On white

8.00
#2F42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2F42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F42BC
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F42BC#FFFFFF#000000##FFFFFF
##2F42BC1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C0
Deuteranopia (green-blind)
#004ABA
Tritanopia (blue-blind)
#006279
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2f42bc;
/* rgb */ color: rgb(47, 66, 188);
/* oklch */ color: oklch(44.7% 0.191 269.7);
Tailwind
colors: {
  custom: {
    50: '#7d76d1',
    500: '#2f42bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f42bc;
$custom-light: #7d76d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f42bc",
  "rgb": {
    "r": 47,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 231.915,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.44736,
    "c": 0.19114,
    "h": 269.7
  },
  "luminance": 0.08132
}

Semantic roles & 50–950 ramp

primary
#2F42BC
secondary
#CAC07D
accent
#CE45E3
background
#F8F7FD
surface
#EFEDFA
border
#CAC8D3
text
#0B0814
muted
#7C7B83

Preview Lab

Preview with #2F42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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