#2C308B#2C308B

#2C308B is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.8% C 0.148 H 274.5°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#2C308B
RGBrgb(44, 48, 139)
HSLhsl(237, 52%, 36%)
HSVhsv(237, 68%, 55%)
CMYKcmyk(68.3%, 65.5%, 0%, 45.5%)
CIE-LABlab(25.30, 29.09, -51.16)
CIE-LCHlch(25.30, 58.85, 299.62°)
OKLaboklab(36.79% 0.0116 -0.1476)
OKLCHoklch(36.79% 0.148 274.5)
XYZxyz(6.7543, 4.5129, 24.9362)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C308B #8B872C
analogous
#2C5F8B #2C308B #572C8B
triadic
#2C308B #8B2C30 #308B2C
tetradic
#2C308B #8B2C5F #8B872C #2C8B57
square
#2C308B #8B2C5F #8B872C #2C8B57
split-complementary
#2C308B #8B572C #5F8B2C
monochromatic
#0F102E #1D205D #2C308B #3B40B9 #6468CE

Accessibility & contrast

On white

11.04
#2C308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2C308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C308B
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C308B#FFFFFF#000000##FFFFFF
##2C308B1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c308b;
/* rgb */ color: rgb(44, 48, 139);
/* oklch */ color: oklch(36.8% 0.148 274.5);
Tailwind
colors: {
  custom: {
    50: '#7268ae',
    500: '#2c308b',
    950: '#000000',
  },
}
SCSS
$custom: #2c308b;
$custom-light: #7268ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c308b",
  "rgb": {
    "r": 44,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 237.474,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36786,
    "c": 0.14804,
    "h": 274.5
  },
  "luminance": 0.04513
}

Semantic roles & 50–950 ramp

primary
#2C308B
secondary
#B4B15F
accent
#D54CDB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C308B

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

Preview Lab → · Contrast checker → · Palette generator →

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