#242F98#242F98

#242F98 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.169 H 270.7°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#242F98
RGBrgb(36, 47, 152)
HSLhsl(234, 62%, 37%)
HSVhsv(234, 76%, 60%)
CMYKcmyk(76.3%, 69.1%, 0%, 40.4%)
CIE-LABlab(25.79, 33.48, -58.40)
CIE-LCHlch(25.79, 67.32, 299.83°)
OKLaboklab(37.38% 0.002 -0.169)
OKLCHoklch(37.38% 0.169 270.7)
XYZxyz(7.4096, 4.6743, 30.2114)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#242F98 #988D24
analogous
#246998 #242F98 #532498
triadic
#242F98 #98242F #2F9824
tetradic
#242F98 #982469 #988D24 #249853
square
#242F98 #982469 #988D24 #249853
split-complementary
#242F98 #985324 #699824
monochromatic
#0D1035 #182067 #242F98 #303EC9 #5E69D9

Accessibility & contrast

On white

10.85
#242F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#242F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #242F98
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##242F98#FFFFFF#000000##FFFFFF
##242F981.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003896
Tritanopia (blue-blind)
#004C5F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #242f98;
/* rgb */ color: rgb(36, 47, 152);
/* oklch */ color: oklch(37.4% 0.169 270.7);
Tailwind
colors: {
  custom: {
    50: '#7268b7',
    500: '#242f98',
    950: '#000000',
  },
}
SCSS
$custom: #242f98;
$custom-light: #7268b7;
$custom-dark: #000000;
JSON
{
  "hex": "#242f98",
  "rgb": {
    "r": 36,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 234.31,
    "s": 61.702,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37384,
    "c": 0.16899,
    "h": 270.7
  },
  "luminance": 0.04675
}

Semantic roles & 50–950 ramp

primary
#242F98
secondary
#BEB45A
accent
#D543E5
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #242F98

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

Preview Lab → · Contrast checker → · Palette generator →

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