#2C257F#2C257F

#2C257F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.145 H 278.7°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#2C257F
RGBrgb(44, 37, 127)
HSLhsl(245, 55%, 32%)
HSVhsv(245, 71%, 50%)
CMYKcmyk(65.4%, 70.9%, 0%, 50.2%)
CIE-LABlab(21.54, 31.91, -49.78)
CIE-LCHlch(21.54, 59.13, 302.66°)
OKLaboklab(33.72% 0.0219 -0.1436)
OKLCHoklch(33.72% 0.145 278.7)
XYZxyz(5.5298, 3.3905, 20.4376)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C257F #787F25
analogous
#254B7F #2C257F #59257F
triadic
#2C257F #7F2C25 #257F2C
tetradic
#2C257F #7F254B #787F25 #257F59
square
#2C257F #7F254B #787F25 #257F59
split-complementary
#2C257F #7F5925 #4B7F25
monochromatic
#0B0920 #1C1750 #2C257F #3C33AE #5B52CD

Accessibility & contrast

On white

12.51
#2C257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2C257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C257F
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C257F#FFFFFF#000000##FFFFFF
##2C257F1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c257f;
/* rgb */ color: rgb(44, 37, 127);
/* oklch */ color: oklch(33.7% 0.145 278.7);
Tailwind
colors: {
  custom: {
    50: '#7060a5',
    500: '#2c257f',
    950: '#000000',
  },
}
SCSS
$custom: #2c257f;
$custom-light: #7060a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c257f",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 244.667,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33719,
    "c": 0.14523,
    "h": 278.7
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#2C257F
secondary
#A9B14F
accent
#DE4AD3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C257F

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

Preview Lab → · Contrast checker → · Palette generator →

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