#2F38AF#2F38AF

#2F38AF is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.8% C 0.186 H 271.9°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#2F38AF
RGBrgb(47, 56, 175)
HSLhsl(236, 58%, 44%)
HSVhsv(236, 73%, 69%)
CMYKcmyk(73.1%, 68%, 0%, 31.4%)
CIE-LABlab(30.70, 37.23, -64.21)
CIE-LCHlch(30.70, 74.22, 300.11°)
OKLaboklab(41.79% 0.0062 -0.1857)
OKLCHoklch(41.79% 0.186 271.9)
XYZxyz(10.3217, 6.5268, 41.2650)
Luminance0.0653 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F38AF #AFA62F
analogous
#2F78AF #2F38AF #662FAF
triadic
#2F38AF #AF2F38 #38AF2F
tetradic
#2F38AF #AF2F78 #AFA62F #2FAF66
square
#2F38AF #AF2F78 #AFA62F #2FAF66
split-complementary
#2F38AF #AF662F #78AF2F
monochromatic
#15194F #22297F #2F38AF #4C55CF #7C83DC

Accessibility & contrast

On white

9.11
#2F38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F38AF
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F38AF#FFFFFF#000000##FFFFFF
##2F38AF1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f38af;
/* rgb */ color: rgb(47, 56, 175);
/* oklch */ color: oklch(41.8% 0.186 271.9);
Tailwind
colors: {
  custom: {
    50: '#7b6fc8',
    500: '#2f38af',
    950: '#000000',
  },
}
SCSS
$custom: #2f38af;
$custom-light: #7b6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f38af",
  "rgb": {
    "r": 47,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 235.781,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41785,
    "c": 0.18578,
    "h": 271.9
  },
  "luminance": 0.06528
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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