#2F2DAF#2F2DAF

#2F2DAF is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.1% C 0.198 H 273.6°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).

Color values

HEX#2F2DAF
RGBrgb(47, 45, 175)
HSLhsl(241, 59%, 43%)
HSVhsv(241, 74%, 69%)
CMYKcmyk(73.1%, 74.3%, 0%, 31.4%)
CIE-LABlab(28.31, 43.81, -68.14)
CIE-LCHlch(28.31, 81.01, 302.74°)
OKLaboklab(40.07% 0.0123 -0.1971)
OKLCHoklch(40.07% 0.198 273.6)
XYZxyz(9.8460, 5.5753, 41.1064)
Luminance0.0558 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2DAF #ADAF2D
analogous
#2D6CAF #2F2DAF #702DAF
triadic
#2F2DAF #AF2F2D #2DAF2F
tetradic
#2F2DAF #AF2D6C #ADAF2D #2DAF70
square
#2F2DAF #AF2D6C #ADAF2D #2DAF70
split-complementary
#2F2DAF #AF702D #6CAF2D
monochromatic
#15144E #22207E #2F2DAF #4B49D0 #7B7ADD

Accessibility & contrast

On white

9.93
#2F2DAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2F2DAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2DAF
9.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2DAF#FFFFFF#000000##FFFFFF
##2F2DAF1.009.932.129.93
#FFFFFF9.931.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003DAD
Tritanopia (blue-blind)
#00536C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2f2daf;
/* rgb */ color: rgb(47, 45, 175);
/* oklch */ color: oklch(40.1% 0.198 273.6);
Tailwind
colors: {
  custom: {
    50: '#7c68c8',
    500: '#2f2daf',
    950: '#000000',
  },
}
SCSS
$custom: #2f2daf;
$custom-light: #7c68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2daf",
  "rgb": {
    "r": 47,
    "g": 45,
    "b": 175
  },
  "hsl": {
    "h": 240.923,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4007,
    "c": 0.19751,
    "h": 273.6
  },
  "luminance": 0.05576
}

Semantic roles & 50–950 ramp

primary
#2F2DAF
secondary
#C4C573
accent
#E246E0
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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