#2C2F8E#2C2F8E

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

Color values

HEX#2C2F8E
RGBrgb(44, 47, 142)
HSLhsl(238, 53%, 36%)
HSVhsv(238, 69%, 56%)
CMYKcmyk(69%, 66.9%, 0%, 44.3%)
CIE-LABlab(25.32, 30.82, -52.98)
CIE-LCHlch(25.32, 61.29, 300.19°)
OKLaboklab(36.89% 0.0121 -0.1529)
OKLCHoklch(36.89% 0.153 274.5)
XYZxyz(6.9361, 4.5209, 26.0930)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F8E #8E8B2C
analogous
#2C608E #2C2F8E #5A2C8E
triadic
#2C2F8E #8E2C2F #2F8E2C
tetradic
#2C2F8E #8E2C60 #8E8B2C #2C8E5A
square
#2C2F8E #8E2C60 #8E8B2C #2C8E5A
split-complementary
#2C2F8E #8E5A2C #608E2C
monochromatic
#0F1031 #1E205F #2C2F8E #3A3EBD #6568CF

Accessibility & contrast

On white

11.03
#2C2F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2F8E
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F8E#FFFFFF#000000##FFFFFF
##2C2F8E1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c2f8e;
/* rgb */ color: rgb(44, 47, 142);
/* oklch */ color: oklch(36.9% 0.153 274.5);
Tailwind
colors: {
  custom: {
    50: '#7368b0',
    500: '#2c2f8e',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f8e;
$custom-light: #7368b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f8e",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 142
  },
  "hsl": {
    "h": 238.163,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36888,
    "c": 0.1534,
    "h": 274.5
  },
  "luminance": 0.04521
}

Semantic roles & 50–950 ramp

primary
#2C2F8E
secondary
#B6B360
accent
#D84CDC
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2C2F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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