#2F38C9#2F38C9

#2F38C9 is a dark, highly saturated blue. Relative luminance 0.076; OKLCH L 44.4% C 0.218 H 270.8°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#2F38C9
RGBrgb(47, 56, 201)
HSLhsl(236, 62%, 49%)
HSVhsv(236, 77%, 79%)
CMYKcmyk(76.6%, 72.1%, 0%, 21.2%)
CIE-LABlab(33.24, 46.20, -75.38)
CIE-LCHlch(33.24, 88.41, 301.51°)
OKLaboklab(44.38% 0.003 -0.2182)
OKLCHoklch(44.38% 0.218 270.8)
XYZxyz(13.1255, 7.6483, 56.0315)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38C9 #C9C02F
analogous
#2F85C9 #2F38C9 #732FC9
triadic
#2F38C9 #C92F38 #38C92F
tetradic
#2F38C9 #C92F85 #C9C02F #2FC973
square
#2F38C9 #C92F85 #C9C02F #2FC973
split-complementary
#2F38C9 #C9732F #85C92F
monochromatic
#181C66 #232A97 #2F38C9 #5C64D9 #8E93E5

Accessibility & contrast

On white

8.30
#2F38C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#2F38C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38C9
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38C9#FFFFFF#000000##FFFFFF
##2F38C91.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056CD
Deuteranopia (green-blind)
#0047C6
Tritanopia (blue-blind)
#00617D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2f38c9;
/* rgb */ color: rgb(47, 56, 201);
/* oklch */ color: oklch(44.4% 0.218 270.8);
Tailwind
colors: {
  custom: {
    50: '#8170db',
    500: '#2f38c9',
    950: '#000000',
  },
}
SCSS
$custom: #2f38c9;
$custom-light: #8170db;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38c9",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 236.494,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.44375,
    "c": 0.21827,
    "h": 270.8
  },
  "luminance": 0.0765
}

Semantic roles & 50–950 ramp

primary
#2F38C9
secondary
#CFCB85
accent
#DC43E5
background
#F8F6FD
surface
#F0ECFB
border
#CBC7D4
text
#0C0715
muted
#7D7A83

Preview Lab

Preview with #2F38C9

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

Preview Lab → · Contrast checker → · Palette generator →

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