#2F2EAF#2F2EAF

#2F2EAF is a dark, vivid blue. Relative luminance 0.057; OKLCH L 40.2% C 0.197 H 273.4°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2F2EAF
RGBrgb(47, 46, 175)
HSLhsl(240, 58%, 43%)
HSVhsv(240, 74%, 69%)
CMYKcmyk(73.1%, 73.7%, 0%, 31.4%)
CIE-LABlab(28.52, 43.24, -67.81)
CIE-LCHlch(28.52, 80.42, 302.53°)
OKLaboklab(40.21% 0.0118 -0.1962)
OKLCHoklch(40.21% 0.197 273.4)
XYZxyz(9.8846, 5.6525, 41.1192)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EAF #AEAF2E
analogous
#2E6DAF #2F2EAF #6F2EAF
triadic
#2F2EAF #AF2F2E #2EAF2F
tetradic
#2F2EAF #AF2E6D #AEAF2E #2EAF6F
square
#2F2EAF #AF2E6D #AEAF2E #2EAF6F
split-complementary
#2F2EAF #AF6F2E #6DAF2E
monochromatic
#15154E #22217F #2F2EAF #4C4BD0 #7C7BDC

Accessibility & contrast

On white

9.86
#2F2EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2F2EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EAF
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EAF#FFFFFF#000000##FFFFFF
##2F2EAF1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.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: #2f2eaf;
/* rgb */ color: rgb(47, 46, 175);
/* oklch */ color: oklch(40.2% 0.197 273.4);
Tailwind
colors: {
  custom: {
    50: '#7c68c8',
    500: '#2f2eaf',
    950: '#000000',
  },
}
SCSS
$custom: #2f2eaf;
$custom-light: #7c68c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2eaf",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 175
  },
  "hsl": {
    "h": 240.465,
    "s": 58.371,
    "l": 43.333
  },
  "oklch": {
    "l": 0.40214,
    "c": 0.19652,
    "h": 273.4
  },
  "luminance": 0.05653
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F2EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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