#2F2CA2#2F2CA2

#2F2CA2 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.6% C 0.182 H 274.8°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#2F2CA2
RGBrgb(47, 44, 162)
HSLhsl(242, 57%, 40%)
HSVhsv(242, 73%, 64%)
CMYKcmyk(71%, 72.8%, 0%, 36.5%)
CIE-LABlab(26.77, 40.04, -62.85)
CIE-LCHlch(26.77, 74.52, 302.50°)
OKLaboklab(38.57% 0.0152 -0.1817)
OKLCHoklch(38.57% 0.182 274.8)
XYZxyz(8.5924, 5.0135, 34.6903)
Luminance0.0501 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2CA2 #9FA22C
analogous
#2C64A2 #2F2CA2 #6A2CA2
triadic
#2F2CA2 #A22F2C #2CA22F
tetradic
#2F2CA2 #A22C64 #9FA22C #2CA26A
square
#2F2CA2 #A22C64 #9FA22C #2CA26A
split-complementary
#2F2CA2 #A26A2C #64A22C
monochromatic
#131242 #211F72 #2F2CA2 #4440CB #7370D8

Accessibility & contrast

On white

10.49
#2F2CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#2F2CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2CA2
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2CA2#FFFFFF#000000##FFFFFF
##2F2CA21.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A5
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#004D64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #2f2ca2;
/* rgb */ color: rgb(47, 44, 162);
/* oklch */ color: oklch(38.6% 0.182 274.8);
Tailwind
colors: {
  custom: {
    50: '#7966bf',
    500: '#2f2ca2',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ca2;
$custom-light: #7966bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ca2",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 241.525,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38573,
    "c": 0.18233,
    "h": 274.8
  },
  "luminance": 0.05014
}

Semantic roles & 50–950 ramp

primary
#2F2CA2
secondary
#BDBF6A
accent
#E147DD
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2F2CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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