#2C307F#2C307F

#2C307F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.131 H 275.3°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#2C307F
RGBrgb(44, 48, 127)
HSLhsl(237, 49%, 34%)
HSVhsv(237, 65%, 50%)
CMYKcmyk(65.4%, 62.2%, 0%, 50.2%)
CIE-LABlab(24.26, 24.71, -45.34)
CIE-LCHlch(24.26, 51.64, 298.59°)
OKLaboklab(35.7% 0.0122 -0.1305)
OKLCHoklch(35.7% 0.131 275.3)
XYZxyz(5.9252, 4.1812, 20.5694)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C307F #7F7B2C
analogous
#2C597F #2C307F #512C7F
triadic
#2C307F #7F2C30 #307F2C
tetradic
#2C307F #7F2C59 #7F7B2C #2C7F51
square
#2C307F #7F2C59 #7F7B2C #2C7F51
split-complementary
#2C307F #7F512C #597F2C
monochromatic
#0D0E24 #1C1F52 #2C307F #3C41AC #5E63C7

Accessibility & contrast

On white

11.44
#2C307F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2C307F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C307F
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C307F#FFFFFF#000000##FFFFFF
##2C307F1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c307f;
/* rgb */ color: rgb(44, 48, 127);
/* oklch */ color: oklch(35.7% 0.131 275.3);
Tailwind
colors: {
  custom: {
    50: '#6f68a5',
    500: '#2c307f',
    950: '#000000',
  },
}
SCSS
$custom: #2c307f;
$custom-light: #6f68a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c307f",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 127
  },
  "hsl": {
    "h": 237.108,
    "s": 48.538,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35701,
    "c": 0.13107,
    "h": 275.3
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#2C307F
secondary
#ADA959
accent
#D250D8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C307F

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

Preview Lab → · Contrast checker → · Palette generator →

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