#2C38AF#2C38AF

#2C38AF is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.187 H 270.9°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#2C38AF
RGBrgb(44, 56, 175)
HSLhsl(235, 60%, 43%)
HSVhsv(235, 75%, 69%)
CMYKcmyk(74.9%, 68%, 0%, 31.4%)
CIE-LABlab(30.54, 36.91, -64.49)
CIE-LCHlch(30.54, 74.30, 299.79°)
OKLaboklab(41.62% 0.003 -0.1865)
OKLCHoklch(41.62% 0.187 270.9)
XYZxyz(10.1881, 6.4579, 41.2587)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C38AF #AFA32C
analogous
#2C79AF #2C38AF #622CAF
triadic
#2C38AF #AF2C38 #38AF2C
tetradic
#2C38AF #AF2C79 #AFA32C #2CAF62
square
#2C38AF #AF2C79 #AFA32C #2CAF62
split-complementary
#2C38AF #AF622C #79AF2C
monochromatic
#13194D #20287E #2C38AF #4754D1 #7882DD

Accessibility & contrast

On white

9.16
#2C38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2C38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C38AF
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C38AF#FFFFFF#000000##FFFFFF
##2C38AF1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2c38af;
/* rgb */ color: rgb(44, 56, 175);
/* oklch */ color: oklch(41.6% 0.187 270.9);
Tailwind
colors: {
  custom: {
    50: '#7a6fc8',
    500: '#2c38af',
    950: '#000000',
  },
}
SCSS
$custom: #2c38af;
$custom-light: #7a6fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c38af",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 234.504,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41621,
    "c": 0.18657,
    "h": 270.9
  },
  "luminance": 0.06459
}

Semantic roles & 50–950 ramp

primary
#2C38AF
secondary
#C5BD72
accent
#D445E3
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2C38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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