#2F38BE#2F38BE

#2F38BE is a dark, highly saturated blue. Relative luminance 0.071; OKLCH L 43.3% C 0.205 H 271.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#2F38BE
RGBrgb(47, 56, 190)
HSLhsl(236, 60%, 46%)
HSVhsv(236, 75%, 75%)
CMYKcmyk(75.3%, 70.5%, 0%, 25.5%)
CIE-LABlab(32.14, 42.46, -70.74)
CIE-LCHlch(32.14, 82.50, 300.98°)
OKLaboklab(43.26% 0.0045 -0.2047)
OKLCHoklch(43.26% 0.205 271.3)
XYZxyz(11.8776, 7.1491, 49.4592)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38BE #BEB52F
analogous
#2F80BE #2F38BE #6E2FBE
triadic
#2F38BE #BE2F38 #38BE2F
tetradic
#2F38BE #BE2F80 #BEB52F #2FBE6E
square
#2F38BE #BE2F80 #BEB52F #2FBE6E
split-complementary
#2F38BE #BE6E2F #80BE2F
monochromatic
#171B5C #232A8D #2F38BE #555DD5 #868CE1

Accessibility & contrast

On white

8.64
#2F38BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#2F38BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38BE
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38BE#FFFFFF#000000##FFFFFF
##2F38BE1.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C2
Deuteranopia (green-blind)
#0045BC
Tritanopia (blue-blind)
#005D77
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2f38be;
/* rgb */ color: rgb(47, 56, 190);
/* oklch */ color: oklch(43.3% 0.205 271.3);
Tailwind
colors: {
  custom: {
    50: '#7e6fd3',
    500: '#2f38be',
    950: '#000000',
  },
}
SCSS
$custom: #2f38be;
$custom-light: #7e6fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38be",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 190
  },
  "hsl": {
    "h": 236.224,
    "s": 60.338,
    "l": 46.471
  },
  "oklch": {
    "l": 0.43261,
    "c": 0.20478,
    "h": 271.3
  },
  "luminance": 0.0715
}

Semantic roles & 50–950 ramp

primary
#2F38BE
secondary
#CBC67E
accent
#D944E3
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0714
muted
#7D7A83

Preview Lab

Preview with #2F38BE

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

Preview Lab → · Contrast checker → · Palette generator →

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