#242174#242174

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

Color values

HEX#242174
RGBrgb(36, 33, 116)
HSLhsl(242, 56%, 29%)
HSVhsv(242, 72%, 45%)
CMYKcmyk(69%, 71.6%, 0%, 54.5%)
CIE-LABlab(18.90, 29.41, -47.12)
CIE-LCHlch(18.90, 55.55, 301.97°)
OKLaboklab(31.32% 0.0157 -0.136)
OKLCHoklch(31.32% 0.137 276.6)
XYZxyz(4.4228, 2.7234, 16.8122)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242174 #717421
analogous
#214874 #242174 #4E2174
triadic
#242174 #742421 #217424
tetradic
#242174 #742148 #717421 #21744E
square
#242174 #742148 #717421 #21744E
split-complementary
#242174 #744E21 #487421
monochromatic
#070718 #151344 #242174 #332FA4 #4A45CA

Accessibility & contrast

On white

13.59
#242174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#242174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242174
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242174#FFFFFF#000000##FFFFFF
##2421741.0013.591.5413.59
#FFFFFF13.591.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #242174;
/* rgb */ color: rgb(36, 33, 116);
/* oklch */ color: oklch(31.3% 0.137 276.6);
Tailwind
colors: {
  custom: {
    50: '#6a5d9d',
    500: '#242174',
    950: '#000000',
  },
}
SCSS
$custom: #242174;
$custom-light: #6a5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#242174",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 242.169,
    "s": 55.705,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31323,
    "c": 0.13694,
    "h": 276.6
  },
  "luminance": 0.02724
}

Semantic roles & 50–950 ramp

primary
#242174
secondary
#A4A749
accent
#DF49DA
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #242174

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

Preview Lab → · Contrast checker → · Palette generator →

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