#2C238B#2C238B

#2C238B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.163 H 277.4°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#2C238B
RGBrgb(44, 35, 139)
HSLhsl(245, 60%, 34%)
HSVhsv(245, 75%, 55%)
CMYKcmyk(68.3%, 74.8%, 0%, 45.5%)
CIE-LABlab(22.31, 37.22, -56.07)
CIE-LCHlch(22.31, 67.30, 303.58°)
OKLaboklab(34.63% 0.0212 -0.1619)
OKLCHoklch(34.63% 0.163 277.4)
XYZxyz(6.2984, 3.6011, 24.7842)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C238B #828B23
analogous
#234E8B #2C238B #60238B
triadic
#2C238B #8B2C23 #238B2C
tetradic
#2C238B #8B234E #828B23 #238B60
square
#2C238B #8B234E #828B23 #238B60
split-complementary
#2C238B #8B6023 #4E8B23
monochromatic
#0D0A29 #1D175A #2C238B #3B2FBC #5F54D4

Accessibility & contrast

On white

12.21
#2C238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2C238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C238B
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C238B#FFFFFF#000000##FFFFFF
##2C238B1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c238b;
/* rgb */ color: rgb(44, 35, 139);
/* oklch */ color: oklch(34.6% 0.163 277.4);
Tailwind
colors: {
  custom: {
    50: '#7360ae',
    500: '#2c238b',
    950: '#000000',
  },
}
SCSS
$custom: #2c238b;
$custom-light: #7360ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c238b",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 245.192,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34628,
    "c": 0.16333,
    "h": 277.4
  },
  "luminance": 0.03602
}

Semantic roles & 50–950 ramp

primary
#2C238B
secondary
#AFB852
accent
#E345D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C238B

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

Preview Lab → · Contrast checker → · Palette generator →

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