#242277#242277

#242277 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.140 H 276.0°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#242277
RGBrgb(36, 34, 119)
HSLhsl(241, 56%, 30%)
HSVhsv(241, 71%, 47%)
CMYKcmyk(69.7%, 71.4%, 0%, 53.3%)
CIE-LABlab(19.44, 29.85, -48.17)
CIE-LCHlch(19.44, 56.67, 301.78°)
OKLaboklab(31.8% 0.0145 -0.1391)
OKLCHoklch(31.8% 0.14 276)
XYZxyz(4.6283, 2.8506, 17.7555)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242277 #757722
analogous
#224A77 #242277 #4F2277
triadic
#242277 #772422 #227724
tetradic
#242277 #77224A #757722 #22774F
square
#242277 #77224A #757722 #22774F
split-complementary
#242277 #774F22 #4A7722
monochromatic
#070718 #161447 #242277 #3230A7 #4C49CB

Accessibility & contrast

On white

13.37
#242277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#242277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242277
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242277#FFFFFF#000000##FFFFFF
##2422771.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #242277;
/* rgb */ color: rgb(36, 34, 119);
/* oklch */ color: oklch(31.8% 0.140 276.0);
Tailwind
colors: {
  custom: {
    50: '#6b5e9f',
    500: '#242277',
    950: '#000000',
  },
}
SCSS
$custom: #242277;
$custom-light: #6b5e9f;
$custom-dark: #000000;
JSON
{
  "hex": "#242277",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 241.412,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.318,
    "c": 0.13985,
    "h": 276
  },
  "luminance": 0.02851
}

Semantic roles & 50–950 ramp

primary
#242277
secondary
#A8AA4B
accent
#DF49DB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #242277

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

Preview Lab → · Contrast checker → · Palette generator →

#242277 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva