#2C247E#2C247E

#2C247E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.145 H 279.1°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#2C247E
RGBrgb(44, 36, 126)
HSLhsl(245, 56%, 32%)
HSVhsv(245, 71%, 49%)
CMYKcmyk(65.1%, 71.4%, 0%, 50.6%)
CIE-LABlab(21.22, 32.19, -49.68)
CIE-LCHlch(21.22, 59.20, 302.94°)
OKLaboklab(33.46% 0.0229 -0.1433)
OKLCHoklch(33.46% 0.145 279.1)
XYZxyz(5.4343, 3.3032, 20.0858)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C247E #767E24
analogous
#24497E #2C247E #59247E
triadic
#2C247E #7E2C24 #247E2C
tetradic
#2C247E #7E2449 #767E24 #247E59
square
#2C247E #7E2449 #767E24 #247E59
split-complementary
#2C247E #7E5924 #497E24
monochromatic
#0B091F #1B164E #2C247E #3D32AE #5B50CD

Accessibility & contrast

On white

12.64
#2C247E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2C247E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C247E
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C247E#FFFFFF#000000##FFFFFF
##2C247E1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c247e;
/* rgb */ color: rgb(44, 36, 126);
/* oklch */ color: oklch(33.5% 0.145 279.1);
Tailwind
colors: {
  custom: {
    50: '#7060a4',
    500: '#2c247e',
    950: '#000000',
  },
}
SCSS
$custom: #2c247e;
$custom-light: #7060a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c247e",
  "rgb": {
    "r": 44,
    "g": 36,
    "b": 126
  },
  "hsl": {
    "h": 245.333,
    "s": 55.556,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33456,
    "c": 0.1451,
    "h": 279.1
  },
  "luminance": 0.03304
}

Semantic roles & 50–950 ramp

primary
#2C247E
secondary
#A7B04E
accent
#DF49D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C247E

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

Preview Lab → · Contrast checker → · Palette generator →

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