#2F38A2#2F38A2

#2F38A2 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.6% C 0.169 H 272.5°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#2F38A2
RGBrgb(47, 56, 162)
HSLhsl(235, 55%, 41%)
HSVhsv(235, 71%, 64%)
CMYKcmyk(71%, 65.4%, 0%, 36.5%)
CIE-LABlab(29.51, 32.61, -58.35)
CIE-LCHlch(29.51, 66.84, 299.20°)
OKLaboklab(40.55% 0.0074 -0.1685)
OKLCHoklch(40.55% 0.169 272.5)
XYZxyz(9.1059, 6.0404, 34.8614)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38A2 #A2992F
analogous
#2F71A2 #2F38A2 #5F2FA2
triadic
#2F38A2 #A22F38 #38A22F
tetradic
#2F38A2 #A22F71 #A2992F #2FA25F
square
#2F38A2 #A22F71 #A2992F #2FA25F
split-complementary
#2F38A2 #A25F2F #71A22F
monochromatic
#131743 #212873 #2F38A2 #454FC9 #757CD7

Accessibility & contrast

On white

9.51
#2F38A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2F38A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38A2
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38A2#FFFFFF#000000##FFFFFF
##2F38A21.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA5
Deuteranopia (green-blind)
#0040A0
Tritanopia (blue-blind)
#005468
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2f38a2;
/* rgb */ color: rgb(47, 56, 162);
/* oklch */ color: oklch(40.6% 0.169 272.5);
Tailwind
colors: {
  custom: {
    50: '#786fbe',
    500: '#2f38a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f38a2;
$custom-light: #786fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38a2",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 162
  },
  "hsl": {
    "h": 235.304,
    "s": 55.024,
    "l": 40.98
  },
  "oklch": {
    "l": 0.40554,
    "c": 0.16869,
    "h": 272.5
  },
  "luminance": 0.06041
}

Semantic roles & 50–950 ramp

primary
#2F38A2
secondary
#BFB86E
accent
#D349DE
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2F38A2

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

Preview Lab → · Contrast checker → · Palette generator →

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