#242272#242272

#242272 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.133 H 276.6°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#242272
RGBrgb(36, 34, 114)
HSLhsl(242, 54%, 29%)
HSVhsv(242, 70%, 45%)
CMYKcmyk(68.4%, 70.2%, 0%, 55.3%)
CIE-LABlab(18.94, 28.03, -45.76)
CIE-LCHlch(18.94, 53.67, 301.49°)
OKLaboklab(31.3% 0.0152 -0.132)
OKLCHoklch(31.3% 0.133 276.6)
XYZxyz(4.3359, 2.7337, 16.2155)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242272 #707222
analogous
#224872 #242272 #4C2272
triadic
#242272 #722422 #227224
tetradic
#242272 #722248 #707222 #22724C
square
#242272 #722248 #707222 #22724C
split-complementary
#242272 #724C22 #487222
monochromatic
#070718 #151443 #242272 #3330A1 #4A46C8

Accessibility & contrast

On white

13.58
#242272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#242272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242272
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242272#FFFFFF#000000##FFFFFF
##2422721.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#002B70
Tritanopia (blue-blind)
#003747
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #242272;
/* rgb */ color: rgb(36, 34, 114);
/* oklch */ color: oklch(31.3% 0.133 276.6);
Tailwind
colors: {
  custom: {
    50: '#6a5d9b',
    500: '#242272',
    950: '#000000',
  },
}
SCSS
$custom: #242272;
$custom-light: #6a5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#242272",
  "rgb": {
    "r": 36,
    "g": 34,
    "b": 114
  },
  "hsl": {
    "h": 241.5,
    "s": 54.054,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31295,
    "c": 0.13292,
    "h": 276.6
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#242272
secondary
#A3A54B
accent
#DD4ADA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #242272

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

Preview Lab → · Contrast checker → · Palette generator →

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