#242CA7#242CA7

#242CA7 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.5% C 0.192 H 270.5°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#242CA7
RGBrgb(36, 44, 167)
HSLhsl(236, 65%, 40%)
HSVhsv(236, 78%, 65%)
CMYKcmyk(78.4%, 73.7%, 0%, 34.5%)
CIE-LABlab(26.64, 40.70, -66.13)
CIE-LCHlch(26.64, 77.65, 301.61°)
OKLaboklab(38.46% 0.0016 -0.1915)
OKLCHoklch(38.46% 0.192 270.5)
XYZxyz(8.6009, 4.9655, 37.0569)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242CA7 #A79F24
analogous
#246DA7 #242CA7 #5E24A7
triadic
#242CA7 #A7242C #2CA724
tetradic
#242CA7 #A7246D #A79F24 #24A75E
square
#242CA7 #A7246D #A79F24 #24A75E
split-complementary
#242CA7 #A75E24 #6DA724
monochromatic
#0E1142 #191F75 #242CA7 #353ED3 #676EDE

Accessibility & contrast

On white

10.54
#242CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#242CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242CA7
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242CA7#FFFFFF#000000##FFFFFF
##242CA71.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #242ca7;
/* rgb */ color: rgb(36, 44, 167);
/* oklch */ color: oklch(38.5% 0.192 270.5);
Tailwind
colors: {
  custom: {
    50: '#7666c2',
    500: '#242ca7',
    950: '#000000',
  },
}
SCSS
$custom: #242ca7;
$custom-light: #7666c2;
$custom-dark: #000000;
JSON
{
  "hex": "#242ca7",
  "rgb": {
    "r": 36,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 236.336,
    "s": 64.532,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38455,
    "c": 0.1915,
    "h": 270.5
  },
  "luminance": 0.04966
}

Semantic roles & 50–950 ramp

primary
#242CA7
secondary
#C4BE63
accent
#DD40E8
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #242CA7

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

Preview Lab → · Contrast checker → · Palette generator →

#242CA7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva