#2C258C#2C258C

#2C258C is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.162 H 276.9°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2C258C
RGBrgb(44, 37, 140)
HSLhsl(244, 58%, 35%)
HSVhsv(244, 74%, 55%)
CMYKcmyk(68.6%, 73.6%, 0%, 45.1%)
CIE-LABlab(22.83, 36.38, -55.83)
CIE-LCHlch(22.83, 66.63, 303.09°)
OKLaboklab(35.03% 0.0196 -0.1612)
OKLCHoklch(35.03% 0.162 276.9)
XYZxyz(6.4324, 3.7515, 25.1910)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C258C #858C25
analogous
#25518C #2C258C #60258C
triadic
#2C258C #8C2C25 #258C2C
tetradic
#2C258C #8C2551 #858C25 #258C60
square
#2C258C #8C2551 #858C25 #258C60
split-complementary
#2C258C #8C6025 #518C25
monochromatic
#0E0B2B #1D185C #2C258C #3B32BC #6158D3

Accessibility & contrast

On white

12.00
#2C258C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2C258C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C258C
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C258C#FFFFFF#000000##FFFFFF
##2C258C1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c258c;
/* rgb */ color: rgb(44, 37, 140);
/* oklch */ color: oklch(35.0% 0.162 276.9);
Tailwind
colors: {
  custom: {
    50: '#7361af',
    500: '#2c258c',
    950: '#000000',
  },
}
SCSS
$custom: #2c258c;
$custom-light: #7361af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c258c",
  "rgb": {
    "r": 44,
    "g": 37,
    "b": 140
  },
  "hsl": {
    "h": 244.078,
    "s": 58.192,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35033,
    "c": 0.16244,
    "h": 276.9
  },
  "luminance": 0.03752
}

Semantic roles & 50–950 ramp

primary
#2C258C
secondary
#B1B855
accent
#E146D7
background
#F7F5FA
surface
#EDEAF5
border
#C8C6CF
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C258C

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

Preview Lab → · Contrast checker → · Palette generator →

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