#2C257E#2C257E

#2C257E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.144 H 278.8°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#2C257E
RGBrgb(44, 37, 126)
HSLhsl(245, 55%, 32%)
HSVhsv(245, 71%, 49%)
CMYKcmyk(65.1%, 70.6%, 0%, 50.6%)
CIE-LABlab(21.45, 31.57, -49.31)
CIE-LCHlch(21.45, 58.55, 302.63°)
OKLaboklab(33.62% 0.0221 -0.1422)
OKLCHoklch(33.62% 0.144 278.8)
XYZxyz(5.4650, 3.3645, 20.0961)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C257E #777E25
analogous
#254B7E #2C257E #59257E
triadic
#2C257E #7E2C25 #257E2C
tetradic
#2C257E #7E254B #777E25 #257E59
square
#2C257E #7E254B #777E25 #257E59
split-complementary
#2C257E #7E5925 #4B7E25
monochromatic
#0B091F #1B174F #2C257E #3D33AD #5B51CC

Accessibility & contrast

On white

12.55
#2C257E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C257E
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C257E#FFFFFF#000000##FFFFFF
##2C257E1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c257e;
/* rgb */ color: rgb(44, 37, 126);
/* oklch */ color: oklch(33.6% 0.144 278.8);
Tailwind
colors: {
  custom: {
    50: '#7060a4',
    500: '#2c257e',
    950: '#000000',
  },
}
SCSS
$custom: #2c257e;
$custom-light: #7060a4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c257e",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 126
  },
  "hsl": {
    "h": 244.719,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3362,
    "c": 0.14388,
    "h": 278.8
  },
  "luminance": 0.03365
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C257E

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

Preview Lab → · Contrast checker → · Palette generator →

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