#2F38AC#2F38AC

#2F38AC is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.5% C 0.182 H 272.1°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#2F38AC
RGBrgb(47, 56, 172)
HSLhsl(236, 57%, 43%)
HSVhsv(236, 73%, 67%)
CMYKcmyk(72.7%, 67.4%, 0%, 32.5%)
CIE-LABlab(30.42, 36.17, -62.87)
CIE-LCHlch(30.42, 72.54, 299.91°)
OKLaboklab(41.5% 0.0065 -0.1818)
OKLCHoklch(41.5% 0.182 272.1)
XYZxyz(10.0303, 6.4102, 39.7304)
Luminance0.0641 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38AC #ACA32F
analogous
#2F76AC #2F38AC #642FAC
triadic
#2F38AC #AC2F38 #38AC2F
tetradic
#2F38AC #AC2F76 #ACA32F #2FAC64
square
#2F38AC #AC2F76 #ACA32F #2FAC64
split-complementary
#2F38AC #AC642F #76AC2F
monochromatic
#15194C #22287C #2F38AC #4B54CE #7B82DB

Accessibility & contrast

On white

9.20
#2F38AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#2F38AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38AC
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38AC#FFFFFF#000000##FFFFFF
##2F38AC1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB0
Deuteranopia (green-blind)
#0042AA
Tritanopia (blue-blind)
#00576D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f38ac;
/* rgb */ color: rgb(47, 56, 172);
/* oklch */ color: oklch(41.5% 0.182 272.1);
Tailwind
colors: {
  custom: {
    50: '#7a6fc6',
    500: '#2f38ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f38ac;
$custom-light: #7a6fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38ac",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 172
  },
  "hsl": {
    "h": 235.68,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41497,
    "c": 0.18189,
    "h": 272.1
  },
  "luminance": 0.06411
}

Semantic roles & 50–950 ramp

primary
#2F38AC
secondary
#C3BD74
accent
#D547E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F38AC

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

Preview Lab → · Contrast checker → · Palette generator →

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