#2C257D#2C257D

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

Color values

HEX#2C257D
RGBrgb(44, 37, 125)
HSLhsl(245, 54%, 32%)
HSVhsv(245, 70%, 49%)
CMYKcmyk(64.8%, 70.4%, 0%, 51%)
CIE-LABlab(21.35, 31.22, -48.83)
CIE-LCHlch(21.35, 57.96, 302.60°)
OKLaboklab(33.52% 0.0222 -0.1408)
OKLCHoklch(33.52% 0.143 279)
XYZxyz(5.4008, 3.3389, 19.7579)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C257D #767D25
analogous
#254A7D #2C257D #58257D
triadic
#2C257D #7D2C25 #257D2C
tetradic
#2C257D #7D254A #767D25 #257D58
square
#2C257D #7D254A #767D25 #257D58
split-complementary
#2C257D #7D5825 #4A7D25
monochromatic
#0B091F #1B174E #2C257D #3D33AC #5B51CB

Accessibility & contrast

On white

12.59
#2C257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2C257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C257D
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C257D#FFFFFF#000000##FFFFFF
##2C257D1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c257d;
/* rgb */ color: rgb(44, 37, 125);
/* oklch */ color: oklch(33.5% 0.143 279.0);
Tailwind
colors: {
  custom: {
    50: '#7060a4',
    500: '#2c257d',
    950: '#000000',
  },
}
SCSS
$custom: #2c257d;
$custom-light: #7060a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c257d",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 244.773,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33522,
    "c": 0.14252,
    "h": 279
  },
  "luminance": 0.03339
}

Semantic roles & 50–950 ramp

primary
#2C257D
secondary
#A7AF4F
accent
#DE4AD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08050F
muted
#7B797F

Preview Lab

Preview with #2C257D

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

Preview Lab → · Contrast checker → · Palette generator →

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