#2F38AE#2F38AE

#2F38AE is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.184 H 272.0°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#2F38AE
RGBrgb(47, 56, 174)
HSLhsl(236, 57%, 43%)
HSVhsv(236, 73%, 68%)
CMYKcmyk(73%, 67.8%, 0%, 31.8%)
CIE-LABlab(30.61, 36.88, -63.77)
CIE-LCHlch(30.61, 73.66, 300.05°)
OKLaboklab(41.69% 0.0063 -0.1844)
OKLCHoklch(41.69% 0.184 272)
XYZxyz(10.2239, 6.4876, 40.7496)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38AE #AEA52F
analogous
#2F77AE #2F38AE #652FAE
triadic
#2F38AE #AE2F38 #38AE2F
tetradic
#2F38AE #AE2F77 #AEA52F #2FAE65
square
#2F38AE #AE2F77 #AEA52F #2FAE65
split-complementary
#2F38AE #AE652F #77AE2F
monochromatic
#15194E #22287E #2F38AE #4C55CF #7C83DC

Accessibility & contrast

On white

9.14
#2F38AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2F38AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38AE
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38AE#FFFFFF#000000##FFFFFF
##2F38AE1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB2
Deuteranopia (green-blind)
#0042AC
Tritanopia (blue-blind)
#00586E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f38ae;
/* rgb */ color: rgb(47, 56, 174);
/* oklch */ color: oklch(41.7% 0.184 272.0);
Tailwind
colors: {
  custom: {
    50: '#7b6fc7',
    500: '#2f38ae',
    950: '#000000',
  },
}
SCSS
$custom: #2f38ae;
$custom-light: #7b6fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38ae",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 174
  },
  "hsl": {
    "h": 235.748,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.41689,
    "c": 0.18449,
    "h": 272
  },
  "luminance": 0.06489
}

Semantic roles & 50–950 ramp

primary
#2F38AE
secondary
#C4BE75
accent
#D647E1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2F38AE

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

Preview Lab → · Contrast checker → · Palette generator →

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